better-auth

Own your auth: the TypeScript framework with every feature built in

better-auth.com · Free and open source

better-auth is a free, self-hosted TypeScript auth framework: email/password, social login, 2FA, organizations, passkeys — stored in YOUR database, no per-user pricing ever.

Capabilities

Capabilities

  • Email/password, OAuth (Google/GitHub/...), magic links, passkeys, 2FA/TOTP
  • Plugins: organizations/teams, admin, Stripe billing integration
  • Framework-agnostic TS, works on serverless and edge; data lives in your own DB

Best for

  • Personal clones and indie SaaS: $0 forever, no vendor lock-in, no MAU pricing
  • Default choice when the builder owns the database

Not for

  • Enterprise SSO/SAML/SCIM requirements — that is WorkOS territory