Better Auth logo
About
Open-source authentication framework for TypeScript. Open-source alternative to Auth0 and Clerk.
Catalogue
No. 154
Category
Development
GitHub stars
★ 31k+394 this month
Last commit
Page updated
Better Auth website

Overview

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. Unlike a hosted login service, it is a library you add to your own app, and the users stay in your own database. It works with Next.js, Nuxt, SvelteKit, Astro, Hono and 20+ other frameworks. Its website says Better Auth is joining Vercel.

What it does well

Better Auth includes sessions, email verification and password reset, social login (Google, GitHub, Apple, Discord and more), teams with roles and invitations, and SSO with SAML 2.0 and SCIM. Plugins add passkeys, magic links, API keys, JWTs, MCP auth for AI agents, bot detection and an admin layer for users and organisations.

Why it’s in the collection

Better Auth gives TypeScript apps the features of a hosted auth service while keeping users in your own database. It is MIT-licensed.

Is Better Auth open source?

Yes. Better Auth is open source under the MIT license, so you can read, change and host the code yourself. MIT license text.

On GitHub

Stars
30,999
+394 in 30 days
Forks
3,143
Commits
8,187
Latest

Languages

  • TypeScript 100%

Compared with

More in Development

Whole collection