OAuth Authentication
OAuth callback handler
Changed onHandles OAuth provider callback with authorization code. Exchanges code for tokens and creates/signs in user.
get/auth/oauth/{provider}/callback
Request
- Base URLhttps://api.volcano.dev
- Authnone declared
Path parameters
provider, 'google' | 'github' | 'microsoft' | 'apple' required
Query parameters
code, string required
state, string required
error, string
Response
Existing user signed in (when redirect_url was omitted)
Auth Token Response required
access_token, string required
JWT access token (expires after configured lifetime)
token_type, string required
expires_in, integer required
Access token lifetime in seconds
refresh_token, string
Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
user, Auth User required
Example response
{
"token_type": "bearer"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
refresh_tokento the response with the status
9 more changes in this revision
- breaking