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
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
]
})