Redeem a one-time OAuth callback exchange code
POST/api/v1/auth/oauth/exchange
Exchange a one-time OAuth callback code for a JWT or 2FA challenge.
The callback endpoint issues a short-lived exchange code and sets a verifier cookie on the frontend origin; the frontend POSTs both back here to receive the actual session token.
- 400 on missing/expired/mismatched code-verifier pairs.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 429
- 500
Successful Response
Bad request — malformed input or failed validation.
Resource not found, or hidden for tenant-enumeration safety (the caller lacks permission to know whether the resource exists).
Conflict — the current resource state does not allow this operation (e.g. assessment already started, email already in use).
Semantic validation failure — request shape was valid but contents were not.
Too many requests — rate limited. Retry after the window resets.
Internal server error — unexpected failure.