ConvexAuthNextjsConfig
Configuration for setupConvexAuthNextjs.
Properties
| Property | Type | Description |
|---|---|---|
convexUrl | string | The Convex deployment URL used server-side. |
cookieOptions? | Partial<AuthCookieOptions> | Overrides the default auth cookie attributes. Unlike the base config, secure may be omitted here; it defaults from NODE_ENV. |
isAuthenticated | IsAuthenticatedFn | The app's isAuthenticated query reference, used twice over: the server verifies the access token against the backend with it (which checks its signature and that the session is live) rather than trusting the cookie by decoding it, and the client provider subscribes to it, so a session revoked server-side signs the browser out reactively instead of at the next failed refresh. |
refreshSession | RefreshSessionFn | The app's refreshSession mutation reference. The proxy uses it for its optimistic refresh. |