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

Okta Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_OKTA_ID
AUTH_OKTA_SECRET
AUTH_OKTA_ISSUER

Configuration

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