remix-auth - v5.0.0
    Preparing search index...

    Type Alias infer<T>

    infer: T extends Authenticator<infer SR> ? StrategySessionData<SR> : never

    Infers the session data type from an Authenticator instance.

    This utility type extracts the session data type associated with the strategies registered in the Authenticator. It is useful for ensuring type safety when working with authenticated session data.

    Type Parameters

    • T

      The Authenticator instance from which to infer the session data type

    type SessionData = Authenticator.infer<typeof auth>;