ServerAuthSessionConfig
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. |