Skip to content
v3.0.1 — MCP OAuth, organizations, passkeys, SSR adaptersChangelog
Convex Auth
Esc
↑↓navigate↵open⌘Jpreview

Exchange the session cookie for a short-lived Convex JWT

Used by Convex clients that authenticate function calls with ctx.auth.getUserIdentity(). The returned JWT is signed by the deployment’s JWT_PRIVATE_KEY and verified by auth.config.ts.

GET/api/auth/convex/token
Responses
200

Signed JWT.

tokenstring
Try it
Server
Request
curl -X GET 'https://your-deployment.convex.site/api/auth/convex/token'
Response
{
  "token": "string"
}