What problem does it solve?
Better Auth provides a comprehensive, framework-agnostic authentication/authorization system for TypeScript applications, unifying email/password, OAuth, 2FA, passkeys, session management, RBAC, rate limiting, and a plugin ecosystem to accelerate secure auth integration.
Core Features & Use Cases
- Built-in email/password with optional verification, password reset, and session management
- OAuth providers and token management for social sign-in across frameworks (Next.js, Nuxt, Express, etc.)
- Advanced security features: two-factor authentication (TOTP), passkeys/WebAuthn, magic links, and RBAC for multi-tenant apps
- Real-world scenarios include SaaS apps needing flexible login methods, device-based sessions, and role-based access control
Quick Start
Install better-auth, configure a server with a database, enable the desired auth methods, and mount the API handler.