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],
})