Security First

Authentication solved.

Don't waste weeks building login forms. We've integrated Better Auth so you can focus on your product.

Email & Password

Classic, reliable, and secure. Fully typed and validated.

Social Logins

Google, GitHub, and more pre-configured providers.

Magic Links

Passwordless login experience for better conversion.

Passkeys

Biometric login (TouchID/FaceID) supported out of the box.

Multi-Tenancy

Built-in organization support for B2B SaaS apps.

Role-Based Access

Granular permissions and role management ready to use.

auth.ts
export const auth = betterAuth({
    emailAndPassword: {
        enabled: true
    },
    socialProviders: {
        google: {
            clientId: process.env.GOOGLE_CLIENT_ID,
            clientSecret: process.env.GOOGLE_CLIENT_SECRET
        }
    },
    plugins: [
        organization(),
        twoFactor(),
        passkey()
    ]
})

Ready to secure your app?