Better Auth

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.
On GitHub
- Stars
- 0
- Forks
- 0
- Commits
- 0
- Repository
- better-auth/better-auth
Languages
- TypeScript 100%
Compared with
Auth0Authentication platform from Okta, priced by monthly active users.
ClerkHosted authentication and user management for web apps.
LogtoNo. 140Open-source authentication and identity infrastructure.
See every open-source alternative to Auth0 and Clerk in the collection.



