diff --git a/apps/api/src/app/auth/oidc.helper.ts b/apps/api/src/app/auth/oidc.helper.ts index 0b04f1a806..4e8de829fc 100644 --- a/apps/api/src/app/auth/oidc.helper.ts +++ b/apps/api/src/app/auth/oidc.helper.ts @@ -1,3 +1,4 @@ export function getOidcDiscoveryUrl(issuer: string) { + // Remove trailing slashes return `${issuer.replace(/\/+$/, '')}/.well-known/openid-configuration`; }