Skip to content

The most comprehensive authentication library for TypeScript

License

Notifications You must be signed in to change notification settings

louisgituhi/better-auth

Repository files navigation

Better Auth Logo

Better Auth

The most comprehensive authentication library for TypeScript
Learn more »

Discord · Website · Issues

npm npm version GitHub stars

Important

Note: 🚧 This project is currently in beta. Features and APIs may change.

About the Project

Why Better Auth?

Auth is a partly solved problem. Open-source libraries often need extra code for anything beyond basic login, while third-party services, though convenient, bring their own challenges—and can get expensive fast.

Better Auth was built to tackle these frustrations. It offers a robust core authentication library, supported by a growing plugin ecosystem, allowing you to quickly add advanced auth features with minimal effort.

Goals


  • Be Comprehensive: Save users from reinventing the wheel for anything related auth.
  • Prioritize Best Practices: provide best practices rather than overwhelming configuration options.
  • Framework Agnostic: Support most frameworks and avoid framework specific features and solutions if possible.
  • Consistency: Provide a consistent and predictable API across all platforms
  • Type Safety: Value type-safety and embrace typescript magic when necessary.

Non-Goals


  • JWT-Based Authentication: We won’t support JWT-based auth unless provided by a third-party plugin.
  • Support for Non-Relational Databases: No plans to support MongoDB or other non-relational databases.
  • Deep Customization: Our focus is on delivering opinionated, best-practice defaults, rather than enabling deep customization.

Contribution

Better Auth is free and open source project licensed under the MIT License. You are free to do whatever you want with it.

You could help continuing its development by:

Security

If you discover a security vulnerability within Better Auth, please send an e-mail to security@better-auth.com.

All reports will be promptly addressed, and you'll be credited accordingly.

About

The most comprehensive authentication library for TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.9%
  • Other 1.1%