Skip to content

OAuth Callback

Handles the OAuth redirect callback.

Method and path

  • Method: GET
  • Path: /auth/oauth/{provider}/callback
  • Auth: not required before callback; session may be established after callback

Path parameters

  • provider: configured provider key

Query parameters

  • code
  • state

Behavior

  • Exchanges authorization code with the provider
  • Fetches user profile
  • Establishes local auth state
  • Redirects browser back to the application flow