Skip to content
The Auth.js project is now part of Better Auth.

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 © Better Auth Inc. - 2025