What problem does it solve?
Centralizes OAuth 2.1 / OpenID Connect authentication for multi-app platforms, enabling SSO, managed client registration, and robust token handling so teams avoid duplicated auth logic and insecure ad-hoc integrations.
Core Features & Use Cases
- Auth Server Setup: Configure Better Auth with OIDC provider plugin to issue authorization codes, access tokens, and refresh tokens for public and confidential clients.
- PKCE for Public Clients: Support secure SPA/mobile authentication flows without exposing client secrets by using PKCE.
- Admin Controls & Seeding: Provide admin-only client registration endpoints and scripts or SQL seeds to pre-register trusted public clients for first-party apps.
- Email & Verification Fallbacks: Integrate SMTP and Resend providers for verification and password flows with a prioritized fallback strategy.
- JWKS & Offline Verification: Enable RS256 signing and a JWKS endpoint for offline ID token verification to reduce server load and scale securely.
- Use Case: Deploy a central auth server that supports a Docusaurus frontend SPA, multiple internal services, and mobile apps with PKCE, admin-managed OAuth clients, and email verification.
Quick Start
Set up Better Auth with the oidc-provider plugin, enable PKCE for public clients, seed a trusted public client, and enable JWKS for RS256 token verification.