Better Auth
Better Auth is a framework-agnostic authentication and authorization library for TypeScript. Unlike hosted identity providers, Better Auth runs inside the developer's own application against their own database (Postgres, MySQL, SQLite, MongoDB via adapters). The core library supports credential, social, magic-link, OTP, passkey, and SSO sign-in, with plugins for organizations / teams / RBAC, API keys, two-factor authentication, JWT, generic OAuth, SAML / SSO, and SCIM. It integrates with Next.js, Nuxt, SvelteKit, Astro, Hono, and 20+ other frameworks. An optional managed dashboard with audit logs, breached-password detection, bot-protection, and self-service enterprise SSO is available at dash.better-auth.com.
Better Auth publishes 4 APIs on the APIs.io network. Tagged areas include Authentication, Authorization, TypeScript, Library, and Open Source.
Better Auth’s developer surface includes documentation, GitHub presence, and 5 more developer resources.
APIs
Better Auth Library
Core TypeScript library distributed as the `better-auth` npm package. Configured in the application backend to expose sign-in / sign-up / session endpoints that the developer mo...
Better Auth CLI
Project initialization and schema-migration CLI invoked with `npx @better-auth/cli` (or `npx auth init`). Generates database schema, configures the auth route handler, and scaff...
Better Auth Plugins
First-party plugin ecosystem covering two-factor authentication, passkeys, magic link, organizations and teams, API keys, generic OAuth, JWT, OpenAPI, admin, and SSO (SAML / OID...
Better Auth Dashboard (Managed)
Optional managed dashboard at dash.better-auth.com. Adds user management UI, audit logs, security signals (breached-password lookups, bot protection, brute-force detection), and...