Reference

refreshSession

Rotates the current session id and refreshes request-local claims.

Signature

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