Skip to content

Commit

Permalink
fix(#43): regression in Auth0 logout
Browse files Browse the repository at this point in the history
Fixes #43
  • Loading branch information
Badisi committed Mar 1, 2024
1 parent e81f20a commit e5649a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/auth-js/oidc/oidc-auth-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ export class OIDCAuthManager extends AuthManager<OIDCAuthSettings> {
*/
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);
}
Expand Down

0 comments on commit e5649a6

Please sign in to comment.