Skip to main content
GET
Google Services OAuth callback

Query Parameters

code
string

Authorization code returned by Google. Required on success.

state
string

CSRF state to compare against req.session.oauth_state.value.

error
string

Set by Google when the user denies consent or the request is malformed.

Response

302

Always a redirect. On success → profile or chat page (per the captured origin). On any failure (missing code, state mismatch, token exchange error) → ${PRIA_URL}/oauth/success?error=<code>.