diff --git a/.env.example b/.env.example index 07d27ba..99fdba8 100644 --- a/.env.example +++ b/.env.example @@ -9,6 +9,6 @@ DATABASE_URL='postgresql://prisma:prisma@localhost:5432/finances?schema=public' AUTH0_SECRET='' AUTH0_BASE_URL='http://localhost:3000' -AUTH0_ISSUER_BASE_URL='' +AUTH0_URL='' AUTH0_CLIENT_ID='' AUTH0_CLIENT_SECRET='' diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 63457d2..056bce4 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -2,7 +2,7 @@ import { Auth0Client } from "@auth0/nextjs-auth0/server" export const auth0 = new Auth0Client({ appBaseUrl: process.env.AUTH0_BASE_URL, - domain: process.env.AUTH0_ISSUER_BASE_URL, + domain: process.env.AUTH0_URL, secret: process.env.AUTH0_SECRET, clientId: process.env.AUTH0_CLIENT_ID, clientSecret: process.env.AUTH0_CLIENT_SECRET,