Better Auth Adapter

Connects Better Auth sign-in, sessions, passkeys and 2FA to Payload users

Community 75 4.2k/wk MIT v0.14.2

Installation

pnpm add @delmaredigital/payload-better-auth

About

This plugin lets Payload use Better Auth as its sign-in system. Users keep their accounts in the Payload users collection, and Better Auth handles email and password sign-in, sessions and social logins. Admin screens cover passkeys, two-factor codes and API keys, so people can manage their own security settings from inside the Payload admin panel.

Role checks and access helpers read roles from the user record, so collection access rules can rely on the same data as the login. A first-user-admin guard gives the first account admin rights on a fresh install. Server-side session helpers let your front end and endpoints check who is signed in.

Package info

Package name
@delmaredigital/payload-better-auth
Latest version
0.14.2
Unpacked size
612 kB
License
MIT
Weekly downloads
4.2k
Last publish
Nov 8, 2026

More from delmaredigital

View profile

Builds hierarchical URL slugs from folders, with a visual tree editor in the admin

Visual drag-and-drop page builder for Payload, built on the Puck editor

A/B testing for blocks, pages and flags with statistics inside the admin

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