Skip to content
The Auth.js project is now part of Better Auth.

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 © Better Auth Inc. - 2025