Identity Server プロバイダー
💡
このプロバイダーは非推奨となり、Duende IdentityServer6 に置き換えられました。
リソース
設定
コールバックURL
https://example.com/api/auth/callback/identity-server4
環境変数
AUTH_IDENTITY_SERVER4_ID
AUTH_IDENTITY_SERVER4_SECRET
AUTH_IDENTITY_SERVER4_ISSUER
設定
/auth.ts
import NextAuth from "next-auth"
import IdentityServer4 from "next-auth/providers/identity-server4"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [IdentityServer4],
})