Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
BankID Norge

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],
})
Auth.js © Balázs Orbán and Team - 2024