ServerAuthSessionConfig
For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.
Configuration for a ServerAuthSession.
Properties
| Property | Type | Description |
|---|---|---|
cookieOptions | AuthCookieOptions | Base cookie attributes. Per-cookie lifetime is derived from the token bundle. secure is required (see AuthCookieOptions). |
cookies | CookieStore | Request/response cookies for this SSR request. |
refreshSession | RefreshSession | Exchange the cookie's refresh token for a fresh session (typically over a Convex HTTP client). |
refreshSkewSeconds? | number | Seconds before access-token expiry at which ServerAuthSession.getToken proactively refreshes. Defaults to 10. |