Skip to main content

ConvexAuthNextjsConfig

Configuration for setupConvexAuthNextjs.

Properties​

PropertyTypeDescription
convexUrlstringThe 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.
isAuthenticatedIsAuthenticatedFnThe 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.
refreshSessionRefreshSessionFnThe app's refreshSession mutation reference. The proxy uses it for its optimistic refresh.