diff --git a/src/api/src/config.ts b/src/api/src/config.ts index a587ad6..907e5df 100644 --- a/src/api/src/config.ts +++ b/src/api/src/config.ts @@ -23,7 +23,7 @@ export const apiBaseUrl = process.env.NODE_ENV == "production" ? "" : "http://lo export const API_PORT = process.env.API_PORT || "3000"; export const FRONTEND_URL = process.env.FRONTEND_URL || ""; -export const AUTH0_DOMAIN = `${process.env.AUTH0_DOMAIN}/` || ""; +export const AUTH0_DOMAIN = `${process.env.AUTH0_DOMAIN?.replace(/\/$/, "")}/` || ""; export const AUTH0_AUDIENCE = process.env.AUTH_AUDIENCE; export const APPLICATION_NAME = process.env.APPLICATION_NAME || "";