🚧 Developer Preview

Better Auth for Payload CMS

Revolutionize your Payload CMS authentication with advanced features, enhanced security, and a seamless developer experience.

Core Features

⚡️

Automatic Collections

Pre-configured collections for seamless auth management and user data.

🔗

Automatic Endpoints

Ready-to-use authentication endpoints for login, registration, 2FA, and more.

🛠

Extensible Architecture

Extend collections, roles and auth flows using familiar Payload-like configurations.

🔐

Admin 2FA

Enhance security with TOTP-based Two Factor authentication for your admin panel.

⚙️

Next.js Helpers

Pre-built helpers for seamless Next.js integration and route protection.

📚

Rich Documentation

Extensive documentation, examples, and best practices to get you started.

Simple Integration

@/payload.config.ts
import { buildConfig } from 'payload'
import { betterAuthPlugin } from "payload-better-auth"
 
export default buildConfig({
  // ... your payload configuration
  plugins: [
    betterAuthPlugin({
      betterAuth: {
        appName: "My App",
        secret: process.env.BETTER_AUTH_SECRET
      }
    })
    // ... other payload plugins
  ]
})

Ready to Get Started?

Join the community of developers enhancing their Payload CMS authentication.