https://github.com/better-auth/better-auth
The most comprehensive authentication framework
https://github.com/better-auth/better-auth
authentication iam oauth oauth2 oidc sso stripe typescript
Last synced: 2 days ago
JSON representation
The most comprehensive authentication framework
- Host: GitHub
- URL: https://github.com/better-auth/better-auth
- Owner: better-auth
- License: mit
- Created: 2024-05-19T21:40:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-07-29T12:25:36.000Z (7 days ago)
- Last Synced: 2026-07-29T14:07:36.193Z (7 days ago)
- Topics: authentication, iam, oauth, oauth2, oidc, sso, stripe, typescript
- Language: TypeScript
- Homepage: https://better-auth.com
- Size: 142 MB
- Stars: 29,380
- Watchers: 43
- Forks: 2,745
- Open Issues: 624
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
- stargazer - better-auth/better-auth - The most comprehensive authentication framework \[*MIT License*\] (⭐️29264) (TypeScript)
- Dev-Notes - better-auth
- awesome - better-auth/better-auth - The most comprehensive authentication framework (TypeScript)
- awesome-typescript-backends - Better Auth - The most comprehensive authentication framework for TypeScript (Authentication & Security)
- awesome-solo-founder-oss - Better Auth - auth), [Logto](https://github.com/logto-io/logto) | (Quick Start)
- awesome-github-projects - better-auth - The most comprehensive authentication framework ⭐29,311 `TypeScript` 🔥 (🔒 Security & Privacy)
- awesome - better-auth/better-auth - The most comprehensive authentication framework (TypeScript)
- awesome-side-quests - better-auth/better-auth
- awesome-starred - better-auth/better-auth - The most comprehensive authentication framework (TypeScript)
- awesome - better-auth/better-auth - The most comprehensive authentication framework (TypeScript)
- awesome - better-auth/better-auth - The most comprehensive authentication framework for TypeScript (<a name="TypeScript"></a>TypeScript)
- awesome-openid-connect - Better Auth - TypeScript Framework agnostic authentication library for SPAs and server-side applications. (Relying Parties (RP) Libraries / JavaScript)
- my-awesome-list - better-auth - auth | 29381 | (TypeScript)
- awesome-backend - Better Auth - agnostic authentication (and authorization) library for TypeScript (Uncategorized / Uncategorized)
- awesome - better-auth/better-auth - The most comprehensive authentication framework (TypeScript)
README
[](https://npm.chart.dev/better-auth?primary=neutral&gray=neutral&theme=dark)
[](https://www.npmjs.com/package/better-auth)
[](https://github.com/better-auth/better-auth/stargazers)
## 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 with minimal code in a short amount of time. Whether you need 2FA, multi-tenant support, or other complex 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 require 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.
## Contribution
Better Auth is a free and open source project licensed under the [MIT License](./LICENSE.md). You are free to do whatever you want with it.
You could help continuing its development by:
- [Contribute to the source code](./CONTRIBUTING.md)
- [Suggest new features and report issues](https://github.com/better-auth/better-auth/issues)
## Security
If you discover a security vulnerability within Better Auth, please send an e-mail to [security@better-auth.com](mailto:security@better-auth.com).
All reports will be promptly addressed, and you'll be credited accordingly.