payload-auth
Better Auth for Payload CMS
payload-auth replaces Payload's built-in authentication with Better Auth, so your admin panel and your app share one auth system — social providers, passkeys, 2FA, organizations and all.
pnpm add payload-auth better-authOne session, everywhere
The Payload admin panel and your frontend authenticate against the same Better Auth session. No second user table, no bridging code.
Collections generated for you
Users, sessions, accounts and verifications are built from the Better Auth schema — plus a collection for every Better Auth plugin you enable.
Better Auth, unmodified
The plugin swaps in a Payload database adapter. Every Better Auth feature, plugin and client method works exactly as documented.
Admin UI included
Login, signup, forgot/reset password and 2FA views are replaced with Better Auth equivalents that respect your enabled login methods.
Built for AI coding agents
Every page is available as plain Markdown, and the whole site is published as llms.txt and llms-full.txt. Read the guide.