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

Auth0 Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_AUTH0_ID
AUTH_AUTH0_SECRET

Configuration

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