Type alias UseUserSession<TSessionProp>

UseUserSession<TSessionProp>: ((required?) => Nullable<TSessionProp>)

Structure of a useUserSession hook.

Type Parameters

Type declaration

    • (required?): Nullable<TSessionProp>
    • Parameters

      • Optional required: Optional<boolean>

        If true, an exception is throw if no session is available, otherwise null will be returned.

      Returns Nullable<TSessionProp>

Returns

The session or null if there is no session.

Generated using TypeDoc