Skip to main content

ServerAuthSessionConfig

Configuration for a ServerAuthSession.

Properties​

PropertyTypeDescription
cookieOptionsAuthCookieOptionsBase cookie attributes. Per-cookie lifetime is derived from the token bundle. secure is required (see AuthCookieOptions).
cookiesCookieStoreRequest/response cookies for this SSR request.
refreshSessionRefreshSessionExchange the cookie's refresh token for a fresh session (typically over a Convex HTTP client).
refreshSkewSeconds?numberSeconds before access-token expiry at which ServerAuthSession.getToken proactively refreshes. Defaults to 10.