-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Multiple instances #1010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple instances #1010
Conversation
…cachelocation] in APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to see a comment added regarding the JSON.parse
usage, but otherwise looks good.
Done. @pkanher617 @jasonnutter Can we please prioritize this tomorrow? |
@@ -467,12 +454,11 @@ export class UserAgentApplication { | |||
// Push popup window handle onto stack for tracking | |||
WindowUtils.trackPopup(popUpWindow); | |||
} catch (e) { | |||
this.loginInProgress = false; | |||
this.acquireTokenInProgress = false; | |||
this.cacheStorage.setItem(TemporaryCacheKeys.INTERACTION_STATUS, RequestStatus.CANCELLED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does setting to cancelled here do anything? Doesn't this get wiped out anyway during removeAcquireTokenEntries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resetting interaction status since we bail out from here with a reject. removeAcquireTokenEntries() checks for this status to remove the entires for a request. So setting this to 'Cancelled' or 'Completed' is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, would appreciate other eyes on the code.
@jasonnutter Added the comment. Can you please approve? |
This PR is to support multiple instances of MSAL in the same window stack (i.e. in main window and iframe, two separate iframes, etc.).
Changes:
Note: @pkanher617 's PR #980 is moved to this PR with some additional changes