Reference

getSession

Reads a session through a deprecated router session alias.

Signature

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