auth/session_lifecycle.ts view source
(options: CreateSessionAndSetCookieOptions): Promise<void> Create an auth session and set the session cookie on the response.
Shared by login and bootstrap — generates a token, hashes it, persists the session row, optionally enforces a per-account session limit, and sets the signed cookie.
options
returns
Promise<void>