🚧 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 "@b3nab/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.