WordPress 提供者
资源
设置
回调 URL
https://example.com/api/auth/callback/wordpress
环境变量
AUTH_WORDPRESS_ID
AUTH_WORDPRESS_SECRET
配置
/auth.ts
import NextAuth from "next-auth"
import WordPress from "next-auth/providers/wordpress"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [WordPress],
})