Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.
Overview
Better Auth is a TypeScript-oriented authentication and authorization framework meant to live inside your application rather than as a separate hosted login product. It is framework-agnostic, with built-in coverage for common flows and a plugin ecosystem for more advanced behavior.
Configuration is declarative in code, with type-safe setup for email and password auth, social providers such as Google and GitHub, and optional plugins for two-factor authentication, passkeys, organizations, and related features. Integrations cover many application frameworks, including Next.js, Nuxt, SvelteKit, Astro, and Hono, among others.
Capabilities span credential sessions, email verification, password reset, multi-tenant teams with roles and invitations, and enterprise-oriented options such as SSO, SAML, and SCIM. Additional plugin areas include API keys, JWT-related tooling, captcha and breach checking helpers, billing integrations, and MCP-oriented authentication for AI agents.
Optional hosted infrastructure at dash.better-auth.com provides dashboard, audit logs, and security features that can accompany a self-hosted deployment. A CLI entry point initializes auth in a project.
Key features
- TypeScript auth configuration in code
- Email and password sessions
- Social OAuth providers
- Plugin-based feature extensions
- Organizations, roles, invitations
- Enterprise SSO and SCIM plugins
- Optional hosted management infrastructure
- CLI project initialization
Use cases
- Adding login to TypeScript web apps
- Multi-tenant team access control
- Enterprise SSO in custom products
- Extending auth via plugins
- MCP and agent authentication flows
Does the same job as
Better Auth doesn't name these products itself, but its own description shows it does the same job.