Authentication in modern TypeScript applications is often divided between complex enterprise identity providers with steep monthly fees and outdated libraries that lack modern features like Passkeys, Two-Factor Authentication, and multi-tenant organization support.
Better Auth is a modular, type-safe authentication framework that puts you in complete control of your database and sessions. Built with native support for Prisma, Drizzle, and Kysely, it provides pre-built plugins for Passkeys, OAuth 2.0, Organization Workspaces, and Magic Links.
TypeScript Developers, Indie Hackers, Full-Stack Architects, and Security Engineers
$0 (MIT License)
Full access to core auth framework, all official plugins, self-hosted without limits
$15/mo
Support ongoing maintenance, access to sponsor Discord channel
$200/mo+
Dedicated Slack channel, architectural reviews, priority bug fixes
Self-hosted on any Node.js, Bun, Cloudflare Workers, or Vercel environment
OWASP Compliant ยท WebAuthn Level 3 ยท Constant-Time Password Hashing (Argon2 / Scrypt) ยท CSRF Protection
We created Better Auth out of frustration with existing authentication libraries that felt brittle, lacked modern passkey support, or charged predatory active-user pricing.
โAuthentication should be open-source, modular, type-safe, and run directly inside your application stack without external proxies.โ
โข Native Passkey / WebAuthn biometric login support โข Multi-organization role-based access control (RBAC) plugin โข Session hijacking detection with IP/user-agent fingerprinting
SAML SSO and enterprise directory sync (SCIM) plugin
Zero-knowledge encryption for user metadata storage
Yes. Better Auth has first-class support for Next.js App Router server actions, route handlers, and middleware.
Better Auth uses modern memory-hard hashing algorithms (Argon2id and Scrypt) with cryptographic salts and constant-time string comparisons.

Creator of Better Auth ยท TypeScript Systems Architect
TypeScript systems architect and creator of Better Auth, the modular, type-safe authentication and session framework supporting Passkeys, Two-Factor Authentication, and Multi-Tenant Organizations. Focused on providing open-source, vendor-independent security primitives for modern web frameworks.
Beautifully designed components you can copy and paste into your apps
The connected workspace for notes, docs, wikis, and AI
Where teams design, prototype, and build software together
The open source Firebase alternative built on Postgres
The issue tracking tool built for high-performance software teams
Frontier intelligence, unmatched coding capabilities & reasoning
The AI-first code editor for hyper-productive engineers
The AI software engineer that builds full-stack apps in minutes
Email for developers โ built with React and modern APIs
The open-source link management platform for modern marketing
Steven Tey@steventey