Skip to main content
POST
Exchange OAuth code for JWT

Body

application/json

Request to exchange OAuth code for JWT

code
string | null

Authorization code returned by the OAuth provider after user consent

state
string | null

State token from the initial auth request, used for CSRF protection

error
string | null

Error code if OAuth provider returned an error instead of authorization code

code_verifier
string | null

PKCE code verifier that corresponds to the code_challenge sent in the authorization request

Response

Successful Response

Response containing JWT and user info

access_token
string
required

JWT to send as a Bearer token in the Authorization header on subsequent requests

user
UserInfo · object
required

The authenticated user