Use configs rather than hardcode + .env example

This commit is contained in:
lumijiez
2025-06-05 23:47:28 +03:00
parent 59b7636c60
commit ab83eb71ec
3 changed files with 26 additions and 34 deletions

View File

@@ -2,7 +2,7 @@ import { Auth0Client } from "@auth0/nextjs-auth0/server";
export const auth0 = new Auth0Client({
authorizationParameters: {
scope: 'openid profile email',
audience: 'imprink-front'
scope: process.env.AUTH0_SCOPE,
audience: process.env.AUTH0_AUDIENCE
}
});