Auth.js

Signs Payload admin and users in through Auth.js providers like GitHub or Google

Community 206 2.8k/wk MIT v0.10.2

Installation

pnpm add payload-authjs

About

Auth.js is a Payload plugin that lets people sign in to Payload through Auth.js, so teams can use the OAuth providers and sessions they already run in their Next.js app. Once a visitor signs in with Auth.js, Payload treats them as authenticated, with no separate password for the admin panel. The plugin creates a users collection that Auth.js stores accounts in, so user records stay in the Payload database. A session helper lets server and client components in the Next.js app read the current Payload user. Auth.js is still in beta and the project is tied to Auth.js 5, so check its status before using it in production.

Package info

Package name
payload-authjs
Latest version
0.10.2
Unpacked size
270 kB
License
MIT
Weekly downloads
2.8k
Last publish
May 29, 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