Authentication
Callback
Complete OAuth authorization flow.
Validates the state token, exchanges the authorization code for tokens, and creates or updates the user record. Returns JWT tokens.
Flow:
- Validate state token and check expiration
- Resolve provider configuration
- Exchange code for tokens via provider handler
- Fetch user info via provider handler
- Link to existing user or create new user/account
- Generate JWT tokens and return response
POST
Callback
Path Parameters
Body
application/json
Response
Successful Response
Response for successful OAuth callback authentication.
JWT access token
JWT refresh token
Access token expiration time in seconds
Account information
User information
Whether a new user was created
Whether a new account was created