Reference

getSession

Reads the current session cookie, loads the matching session record, and deletes expired records.

Signature

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