Introduction
Better Auth is framework-agnostic authentication (and authorization) framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities. Whether you need 2FA, multi-tenant support, or other auth releated features. It lets you focus on building your actual application instead of reinventing the wheel.
Why Better Auth?
Authentication in the TypeScript ecosystem is a half-solved problem. Other open-source libraries often requires a lot of additional code for anything beyond basic authentication. Rather than just pushing third-party services as the solution, I believe we can do better as a community—hence, Better Auth.
Features
Better Auth aims to be the most comprehensive auth library. It provides a wide range of features out of the box and allows you to extend it with plugins. Here are some of the features:
Framework Agnostic
Support for most popular frameworks
Email & Password
Built-in support for secure email and password authentication
Account & Session Management
Manage user accounts and sessions with ease
Built In Rate Limiter
Built in rate limiter with custom rules
Automatic Database Management
Automatic database management and migrations
Social Sign-on
multiple social sign-on providers
Organization & Access Control
Manage organizations and access control
Two Factor Authentication
Secure your users with two factor authentication
Plugin Ecosystem
Even more capabilities with plugins
and much more and even more to come...