Auth
Start an OAuth Login
Begin a Google or GitHub social login by redirecting the browser to the provider’s authorize URL.
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 answers302 Found with the
provider’s authorize URL in Location and the state cookie in Set-Cookie:
Errors
Errors use the standard envelope — see Errors.