Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

Vipps MobilePay Provider

Vipps MobilePay is a widespread mobile payment application for mobile in Norway, Sweden, Denmark and Finland. The brand is split, where you have Vipps in Norway and Sweden, and MobilePay in Denmark and Finland, but both brands/apps are using the same API.

Resources

Setup

Callback URL

https://example.com/api/auth/callback/vipps

Environment Variables

AUTH_VIPPS_ID
AUTH_VIPPS_SECRET

Test API

To use the test mode, you need to override the issuer with the test API endpoint.

Vipps({ issuer: "https://apitest.vipps.no/access-management-1.0/access/" })

Configuration

/auth.ts
import NextAuth from "next-auth"
import Vipps from "next-auth/providers/vipps";
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Vipps],
})
Auth.js © Balázs Orbán and Team - 2024