Payload Auth

Replaces Payload's admin login with Better Auth, sharing one session across admin and app

Community 348 20.5k/wk MIT v3.0.0

Installation

pnpm add payload-auth

About

Payload Auth swaps Payload's built-in authentication for Better Auth, so the admin panel and your frontend share the same sessions and users. A person who signs in with Google on your marketing site is the same user Payload shows in the admin panel, with no second user table to keep in sync.

The plugin generates the user, session, account and verification collections from the Better Auth schema, and adds a collection for each Better Auth plugin you turn on, such as passkeys, two-factor codes, organizations, API keys and SSO providers. Login, signup, password reset and two-factor screens in the admin panel follow the sign-in methods you enable. Roles defined once feed both Payload access control and Better Auth's admin features.

Package info

Package name
payload-auth
Latest version
3.0.0
Unpacked size
1.6 MB
License
MIT
Weekly downloads
20.5k
Last publish
Aug 5, 2026

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys