Reference

getCurrentSession

Reads the current session and stores serialized claims for the active auth request scope.

Signature

function getCurrentSession<TData>(request: Request, store: SessionStore<TData>, options: SessionCookieOptions): Promise<SessionRecord<TData> | undefined>