Information
- OpenAPI version:
3.1.1
Self-hosted auth server. Every path below is under BASE_URL/api/auth except the ones that declare their own server. Every request must use a Host that is BASE_URL’s host or in ALLOWED_HOSTS (421 unknown_host otherwise). An Origin header, if sent, must be BASE_URL’s origin or an ALLOWED_HOSTS name (403 untrusted_origin otherwise), and a POST to a Better Auth route that sends any cookie must send it (403 MISSING_OR_NULL_ORIGIN otherwise). Errors from core routes are { "code", "message" }; OAuth endpoints answer { "error", "error_description" }. Routes under /api/auth are rate-limited per client IP (429 with X-Retry-After; the Pages routes answer an HTML error page instead). Request and response schemas are generated from Better Auth.
Set by sign-in. Named __Secure-better-auth.session_token when BASE_URL is https.
Security scheme type: apiKey
Cookie parameter name: better-auth.session_token
OAuth client ID and secret from node src/cli.ts clients create.
Security scheme type: http
An OAuth access token from /oauth2/token.
Security scheme type: http