From 4e497dd2cb34e2e862c79c2ce6bc4f7dc37c787a Mon Sep 17 00:00:00 2001 From: Jason Nutter Date: Tue, 7 Jan 2020 14:12:56 -0800 Subject: [PATCH] Remove isAngular flags for handling redirects --- lib/msal-core/src/UserAgentApplication.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/msal-core/src/UserAgentApplication.ts b/lib/msal-core/src/UserAgentApplication.ts index ae47d602ab..e220f52a7e 100644 --- a/lib/msal-core/src/UserAgentApplication.ts +++ b/lib/msal-core/src/UserAgentApplication.ts @@ -235,7 +235,7 @@ export class UserAgentApplication { WindowUtils.checkIfBackButtonIsPressed(this.cacheStorage); // On the server 302 - Redirect, handle this - if (!this.config.framework.isAngular && urlContainsHash && !WindowUtils.isInIframe() && !WindowUtils.isInPopup()) { + if (urlContainsHash && !WindowUtils.isInIframe() && !WindowUtils.isInPopup()) { this.handleAuthenticationResponse(urlHash); } } @@ -269,11 +269,9 @@ export class UserAgentApplication { this.redirectCallbacksSet = true; // On the server 302 - Redirect, handle this - if (!this.config.framework.isAngular) { - const cachedHash = this.cacheStorage.getItem(TemporaryCacheKeys.URL_HASH); - if (cachedHash) { - this.processCallBack(cachedHash, null); - } + const cachedHash = this.cacheStorage.getItem(TemporaryCacheKeys.URL_HASH); + if (cachedHash) { + this.processCallBack(cachedHash, null); } }