Skip to content
需要从 NextAuth.js v4 升级到最新版本吗?请查阅 版本升级指南

BankID Norway Provider

BankID Norge is a widespread login method in Norway, used by banks, government agencies, and other organizations. This provider allows users to sign in with BankID Norway.

Resources

Setup

Callback URL

https://example.com/api/auth/callback/bankid-no

Environment Variables

AUTH_BANKID_NO_ID
AUTH_BANKID_NO_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import BankIDNorway from "next-auth/providers/bankid-no"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [BankIDNorway],
})