Skip to main content
GET
/
v1
/
session
/
login
/
oauth
/
{provider}
/
callback
OAuth callback (GET)
curl --request GET \
  --url https://{appId}.session.prelude.dev/v1/session/login/oauth/{provider}/callback

Path Parameters

provider
string
required

The OAuth provider identifier

Example:

"google"

Query Parameters

code
string

The authorization code from the OAuth provider

Example:

"4/0AX4XfWh..."

state
string
required

The state parameter for CSRF protection

Example:

"st_01jqebhswje1ka1z7ahr9rfsgt"

error
string

Error code from the OAuth provider

Example:

"access_denied"

error_description
string

Error description from the OAuth provider

Example:

"The user denied access"

Response

Redirect to client application with challenge_token or error query parameters