OAuth Authentication

OAuth callback handler

Changed on

Handles OAuth provider callback with authorization code. Exchanges code for tokens and creates/signs in user.

get/auth/oauth/{provider}/callback

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    none 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)

AuthTokenResponse 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, AuthUser required

Example response

{
  "token_type": "bearer"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property refresh_token to the response with the status

    9 more changes in this revision