Adds social OAuth sign-in to Payload CMS 3 and injects provider buttons onto the login screen. It is configured through a plugin function in the Payload config with client credentials for each provider. New users can be created automatically, and several providers can be linked to one account by matching email.
Social Auth plugin for Payload CMS
Installation
npm i payload-social-auth3
Stars
0
Forks
0
Open Issues
7 months ago
Last Updated
9
Weekly Downloads
v1.0.0
npm Version
127.5 KB
Unpacked Size
1
Dependencies
3+2 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 3 |
| Dec 4, 2026 | 3 |
| Dec 3, 2026 | 3 |
| Dec 2, 2026 | 3 |
| Dec 1, 2026 | 3 |
| Nov 30, 2026 | 3 |
| Nov 29, 2026 | 3 |
| Nov 28, 2026 | 3 |
| Nov 27, 2026 | 3 |
| Nov 26, 2026 | 3 |
| Nov 25, 2026 | 3 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 3 |
| Nov 20, 2026 | 3 |
| Nov 19, 2026 | 3 |
| Nov 18, 2026 | 3 |
| Nov 17, 2026 | 3 |
| Nov 16, 2026 | 3 |
| Nov 15, 2026 | 3 |
| Nov 14, 2026 | 3 |
| Nov 13, 2026 | 3 |
| Nov 12, 2026 | 3 |
| Nov 11, 2026 | 3 |
| Nov 10, 2026 | 3 |
| Nov 9, 2026 | 3 |
| Nov 8, 2026 | 3 |
| Nov 7, 2026 | 3 |
| Nov 6, 2026 | 3 |
| Nov 5, 2026 | 3 |
| Nov 4, 2026 | 3 |
| Nov 3, 2026 | 3 |
| Nov 2, 2026 | 3 |
| Nov 1, 2026 | 3 |
| Oct 31, 2026 | 3 |
| Oct 30, 2026 | 3 |
| Oct 29, 2026 | 3 |
| Oct 28, 2026 | 3 |
| Oct 27, 2026 | 3 |
| Oct 26, 2026 | 3 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 3 |
| Oct 23, 2026 | 3 |
| Oct 22, 2026 | 3 |
| Oct 21, 2026 | 3 |
| Oct 20, 2026 | 3 |
| Oct 19, 2026 | 3 |
| Oct 18, 2026 | 3 |
| Oct 17, 2026 | 3 |
| Oct 16, 2026 | 3 |
| Oct 15, 2026 | 2 |
| Oct 14, 2026 | 2 |
| Oct 13, 2026 | 2 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 1 |
| Oct 10, 2026 | 1 |
| Oct 9, 2026 | 1 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 1 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 1 |
| Sep 26, 2026 | 1 |
| Sep 25, 2026 | 1 |
| Sep 24, 2026 | 1 |
| Sep 23, 2026 | 1 |
| Sep 22, 2026 | 1 |
| Sep 21, 2026 | 1 |
| Sep 20, 2026 | 1 |
| Sep 19, 2026 | 1 |
| Sep 18, 2026 | 1 |
| Sep 17, 2026 | 1 |
| Sep 16, 2026 | 1 |
| Sep 15, 2026 | 1 |
| Sep 14, 2026 | 1 |
| Sep 13, 2026 | 1 |
| Sep 12, 2026 | 1 |
| Sep 11, 2026 | 1 |
| Sep 10, 2026 | 1 |
| Sep 9, 2026 | 1 |
| Sep 8, 2026 | 1 |
| Sep 7, 2026 | 1 |
| Sep 6, 2026 | 1 |
5−2 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 5 |
| Dec 4, 2026 | 6 |
| Dec 3, 2026 | 3 |
| Dec 2, 2026 | 3 |
| Dec 1, 2026 | 6 |
| Nov 30, 2026 | 7 |
| Nov 29, 2026 | 6 |
| Nov 28, 2026 | 6 |
| Nov 27, 2026 | 5 |
| Nov 26, 2026 | 5 |
| Nov 25, 2026 | 5 |
| Nov 24, 2026 | 2 |
| Nov 23, 2026 | 2 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 3 |
| Nov 20, 2026 | 2 |
| Nov 19, 2026 | 4 |
| Nov 18, 2026 | 4 |
| Nov 17, 2026 | 4 |
| Nov 16, 2026 | 3 |
| Nov 15, 2026 | 2 |
| Nov 14, 2026 | 3 |
| Nov 13, 2026 | 3 |
| Nov 12, 2026 | 2 |
| Nov 11, 2026 | 2 |
| Nov 10, 2026 | 3 |
| Nov 9, 2026 | 3 |
| Nov 8, 2026 | 4 |
| Nov 7, 2026 | 3 |
| Nov 6, 2026 | 4 |
| Nov 5, 2026 | 3 |
| Nov 4, 2026 | 3 |
| Nov 3, 2026 | 2 |
| Nov 2, 2026 | 3 |
| Nov 1, 2026 | 2 |
| Oct 31, 2026 | 2 |
| Oct 30, 2026 | 1 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 1 |
| Oct 24, 2026 | 1 |
| Oct 23, 2026 | 1 |
| Oct 22, 2026 | 3 |
| Oct 21, 2026 | 5 |
| Oct 20, 2026 | 5 |
| Oct 19, 2026 | 5 |
| Oct 18, 2026 | 4 |
| Oct 17, 2026 | 4 |
| Oct 16, 2026 | 4 |
| Oct 15, 2026 | 3 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 2 |
| Oct 10, 2026 | 2 |
| Oct 9, 2026 | 2 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 2 |
| Oct 5, 2026 | 2 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 2 |
| Oct 2, 2026 | 4 |
| Oct 1, 2026 | 4 |
| Sep 30, 2026 | 4 |
| Sep 29, 2026 | 3 |
| Sep 28, 2026 | 3 |
| Sep 27, 2026 | 3 |
| Sep 26, 2026 | 5 |
| Sep 25, 2026 | 4 |
| Sep 24, 2026 | 4 |
| Sep 23, 2026 | 4 |
| Sep 22, 2026 | 5 |
| Sep 21, 2026 | 5 |
| Sep 20, 2026 | 6 |
| Sep 19, 2026 | 3 |
| Sep 18, 2026 | 2 |
| Sep 17, 2026 | 3 |
| Sep 16, 2026 | 4 |
| Sep 15, 2026 | 3 |
| Sep 14, 2026 | 5 |
| Sep 13, 2026 | 5 |
| Sep 12, 2026 | 8 |
| Sep 11, 2026 | 8 |
| Sep 10, 2026 | 7 |
| Sep 9, 2026 | 7 |
| Sep 8, 2026 | 8 |
| Sep 7, 2026 | 8 |
| Sep 6, 2026 | 7 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1230314990-root)<a href="https://payloaddirectory.dev/plugins/1230314990-root"><img src="https://payloaddirectory.dev/badge/1230314990-root.svg" alt="Payload Directory"></a>README
A modern, highly-polished, and fully-featured social authentication plugin for Payload CMS (v3) that enables seamless OAuth login with GitHub, Google, Facebook, Twitter, and LinkedIn.
Featuring highly-polished, modern, and cohesive social login buttons that blend beautifully into Payload's dark/light modes:

Enables users to link multiple social identity providers seamlessly to a single user account:

onAuthSuccess and onAuthFailure hooks for logging, onboarding flows, or analytics.Install the package via your preferred package manager:
pnpm add payload-social-auth
# or
npm install payload-social-auth
# or
yarn add payload-social-auth
Simply import and add the plugin to your Payload configuration (payload.config.ts):
import { buildConfig } from 'payload';
import { socialAuthPlugin } from 'payload-social-auth';
export default buildConfig({
// ... your existing config
plugins: [
socialAuthPlugin({
providers: {
github: {
clientId: process.env.GITHUB_CLIENT_ID!,
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
},
google: {
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
},
// Add other providers as needed
},
jwtSecret: process.env.PAYLOAD_SECRET, // optional, defaults to Payload's secret
cookieName: 'payload-token', // optional
autoCreateUser: true, // optional, defaults to true
onAuthSuccess: async (user, provider) => {
console.log(`User ${user.id} logged in via ${provider}`);
},
onAuthFailure: async (error, provider) => {
console.error(`Auth failed via ${provider}:`, error);
}
}),
],
});
| Option | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Enable/disable the plugin |
providers | object | {} | Configuration object for social providers (github, google, facebook, twitter, linkedin) |
providers.[provider].clientId | string | Required | OAuth client application ID |
providers.[provider].clientSecret | string | Required | OAuth client application secret |
providers.[provider].callbackURL | string | Optional | Custom callback URL |
providers.[provider].scope | string | Optional | Custom OAuth scope string |
jwtSecret | string | payload.secret | JWT secret used to sign session cookies |
cookieName | string | payload-token | Custom authentication cookie name |
autoCreateUser | boolean | true | Automatically create a new user if one does not exist |
onAuthSuccess | function | undefined | Async callback triggered on successful login |
onAuthFailure | function | undefined | Async callback triggered on failed login |
To configure OAuth credentials, create client applications in each corresponding developer portal:
https://your-domain.com/api/oauth/github.https://your-domain.com/api/oauth/google.https://your-domain.com/api/oauth/facebook.https://your-domain.com/api/oauth/twitter.https://your-domain.com/api/oauth/linkedin.Licensed under the MIT License.
Topics
payload keycloak
Keycloak SSO-only authentication for Payload 3 using OIDC with PKCE and permission-based access helpers
5511/wk0v3
payload plugin oidc
Sign in to the Payload admin with any OpenID Connect provider
46159/wk36v2
payload authjs
Sign in to Payload CMS through Auth.js 5 providers and use the Auth.js session as the Payload user
903.1k/wk206v3
payload auth cookie
Authenticate Payload admin and app users from cookies set by an external SSO system
7683/wk4v3
payload zitadel plugin
Log in to the Mzinga admin through Zitadel or another OIDC provider using authorization code with PKCE
72608/wk11v?
payload simple social login
Google and Microsoft social login for the Payload admin panel and auth collections
7119/wk3v3