From e5649a6b93e11a8831d23eda2909b190ab94bed8 Mon Sep 17 00:00:00 2001 From: Badisi Date: Fri, 1 Mar 2024 11:24:39 +0100 Subject: [PATCH] fix(#43): regression in Auth0 logout Fixes #43 --- projects/auth-js/oidc/oidc-auth-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/auth-js/oidc/oidc-auth-manager.ts b/projects/auth-js/oidc/oidc-auth-manager.ts index 382c9ad..f5402cf 100644 --- a/projects/auth-js/oidc/oidc-auth-manager.ts +++ b/projects/auth-js/oidc/oidc-auth-manager.ts @@ -477,13 +477,13 @@ export class OIDCAuthManager extends AuthManager { */ private patchAuth0Logout(): void { if (this.settings.authorityUrl.endsWith('auth0.com')) { - const { authorityUrl, clientId, desktopNavigationType } = this.settings; + const { authorityUrl, desktopNavigationType } = this.settings; const returnTo = (desktopNavigationType === DesktopNavigation.POPUP) ? this.settings.internal?.popup_post_logout_redirect_uri : this.settings.internal?.post_logout_redirect_uri; this.settings.internal = merge({}, { metadataSeed: { - end_session_endpoint: `${authorityUrl}/v2/logout?client_id=${clientId}&returnTo=${returnTo}` + end_session_endpoint: `${authorityUrl}/v2/logout?returnTo=${returnTo}` } }, this.settings.internal); }