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

Descope Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_DESCOPE_ID
AUTH_DESCOPE_SECRET
AUTH_DESCOPE_ISSUER

Configuration

Follow these steps:

  1. Log into the Descope console
  2. Follow the OIDC instructions

Add the required environment variables from above to your .env.local file.

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