
Better Auth
Comprehensive TypeScript authentication framework with email/password, OAuth, 2FA, multi-tenant support, and framework-agnostic design for modern apps.

A comprehensive authentication framework designed specifically for TypeScript developers who want to own their auth infrastructure without compromising on features or security.
Framework Agnostic Design - Works seamlessly with popular frameworks including React, Vue, Svelte, Astro, Solid, Next.js, Nuxt, TanStack Start, and Hono. Build once, deploy anywhere.
Complete Authentication Suite includes:
- Email & Password Authentication with built-in session and account management
- Social Sign-on supporting GitHub, Google, Discord, Twitter, and more OAuth providers
- Two-Factor Authentication for enhanced security with minimal code
- Multi-tenant Support with organizations, teams, members, and invitation systems
- Access Control features for enterprise-grade applications
Developer Experience First - Auto-generates Drizzle schemas for users and sessions, provides full type safety, and offers a dead simple API. The framework integrates directly with your database using a connection pool, giving you complete control over your data.
Plugin Ecosystem extends functionality with official and community plugins, allowing you to customize authentication flows to match your specific requirements. The modular architecture means you only include what you need.
Trusted by developers building production applications, with praise from industry leaders including the creators of Vercel, Nuxt, SST, and ElysiaJS. Roll your own auth with confidence in minutes rather than weeks.