Skip to main content
GET
Begin an OAuth login (redirect to the provider)
Begins a social login. The server generates a CSRF state and a PKCE code verifier, binds them into a short-lived signed httpOnly cookie (recurso_oauth_state, scoped to /auth/oauth, valid for 10 minutes), and 302-redirects to the provider’s authorize URL. The provider later sends the browser back to GET /auth/oauth/{provider}/callback, which finishes the login. Navigate a browser to this URL — do not call it from a server, since the state cookie must land in the same browser that completes the callback. Check which providers are available first with GET /auth/oauth/providers.

Path Parameters

Example Request

Example Response

There is no response body. A successful call answers 302 Found with the provider’s authorize URL in Location and the state cookie in Set-Cookie:

Errors

Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Path Parameters

provider
enum<string>
required
Available options:
google,
github

Response

Redirect to the provider's authorize URL. Sets the state cookie.