Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
WordPress

Wordpress Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/wordpress

Environment Variables

AUTH_WORDPRESS_ID
AUTH_WORDPRESS_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Wordpress from "next-auth/providers/wordpress"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Wordpress],
})
Auth.js © Balázs Orbán and Team - 2024