Introduction
Introduction to Better Auth.
Better Auth is a 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-tenancy, multi-session support, or even enterprise features like SSO, it lets you focus on building your application instead of reinventing the wheel.
Why Better Auth?
Authentication in the TypeScript ecosystem has long been a half-solved problem. Other open-source libraries often require a lot of additional code for anything beyond basic authentication features. 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 popular frameworks.
Supports popular frameworks, including React, Vue, Svelte, Astro, Solid, Next.js, Nuxt, Tanstack Start, Hono, and more.Learn more
Authentication
Email & Password Authentication.
Built-in support for email and password authentication, with session and account management features.Learn more
Social Sign-on
Support multiple OAuth providers.
Allow users to sign in with their accounts, including GitHub, Google, Discord, Twitter, and more.Learn more
Two Factor
Multi Factor Authentication.
Secure your users accounts with two factor authentication with a few lines of code.Learn more
Multi Tenant
Organization Members and Invitation.
Multi tenant support with members, organization, teams and invitation with access control.Learn more
Plugin Ecosystem
A lot more features with plugins.
Improve your application experience with our official plugins and those created by the community.Learn more
Own your auth
Roll your own auth with confidence in minutes!
...and much more!