WordPress 提供者
資源
設定
回呼網址
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],
})