Ship faster with
Better Auth
The authentication solution developers trust, built on a serverless platform designed to help you build reliable and scalable applications faster.
import { betterAuth } from 'better-auth';
export const auth = betterAuth({
emailAndPassword: { enabled: true },
socialProviders: { github: true },
organizations: { enabled: true }
});Everything you need for authentication
A complete solution with all the features you need to secure your application.
Instant Authentication
Secure authentication ready in seconds with email verification, password reset, and session management.
Social Providers
Connect with GitHub, Google, Discord, and more. Add OAuth providers with a single line of configuration.
Organizations & Teams
Built-in multi-tenant support with role-based access control and team collaboration features.
Two-Factor Auth
Enhanced security with TOTP authenticators, backup codes, and WebAuthn passkey support.
Edge Ready
Deploy anywhere with serverless-first architecture. Works with Vercel, Cloudflare, and all edge runtimes.
Full Type Safety
End-to-end TypeScript support with auto-generated types and runtime validation.
Trusted in production by thousands of teams
Industry leaders trust Better Auth
See what developers are saying about their experience.
"Better Auth allows us to develop much faster than we've ever been used to. The developer experience is unmatched."
Sarah Chen
CTO at TechFlow
"The serverless philosophy is aligned with our vision: no infrastructure to manage, no servers to provision."
Marcus Johnson
Lead Engineer at CloudScale
"The killer feature that convinced us was the organization support - it keeps our engineering velocity high."
Elena Rodriguez
Co-founder at StartupXYZ