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

    Type Alias StrategySessionData<SR>

    StrategySessionData: SR[keyof SR] extends Strategy<infer SD, any> ? SD : never

    Infers the session data type from a record of strategies.

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

    Type Parameters

    • SR extends Record<string, Strategy<any, any>>

      A record of strategies from which to infer the session data type

    type SessionData = Authenticator.StrategySessionData<typeof auth.strategies>;