What problem does it solve?
Building authentication and authorization for TypeScript apps is complex, error-prone, and framework-dependent, requiring boilerplate, security considerations, and ongoing maintenance.
Core Features & Use Cases
- Built-in email/password authentication with optional email verification and password reset.
- Built-in social OAuth providers (GitHub, Google, Discord, etc.) with provider configuration, sessions, and RBAC to support multi-user apps.
- Plugin ecosystem for advanced features such as two-factor authentication (2FA), passkeys/WebAuthn, magic links, organization management, rate limiting, and comprehensive session management.
- Multi-tenant support and RBAC to manage roles, teams, and permissions across organizations.
Quick Start
Install the Better Auth package in your project, configure a database adapter and environment variables, select the authentication methods you need, and mount the API handler in your framework.