What is Better Auth?
Better Auth is a TypeScript library that adds email, social, passkey and two-factor login to your app, storing users in your own database. Plugins add organisations, SSO and more.
Key features
- Email, social and passkey login
- Organisations and roles
- Two-factor authentication
- Works with any TS framework
Better Auth as an open source alternative
Better Auth is listed on 2 of our comparison pages as an open source replacement for Auth0 and Clerk. Compare it with the other options:
- Open source alternatives to Auth0 (7 options)
- Open source alternatives to Clerk (3 options)
Licence
Better Auth is released under the MIT licence, a permissive licence. More MIT software →
Better Auth: FAQ
Is Better Auth open source?
Yes. Better Auth is released under the MIT licence (permissive), and its source code is public.
Is Better Auth free?
The software is free to use.
What does Better Auth replace?
Better Auth is an open source alternative to Clerk and Auth0.
Can I self-host Better Auth?
Better Auth runs on your own machine or in your own development environment.