-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
MSAL JS should not throw user account switch error when home account ids of the request/response match #6846
Conversation
|
||
if ( | ||
homeAccountIdentifier != cachedhomeAccountId && | ||
response.account.id !== request.accountId |
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.
Can we add the use cases in description of this PR where this is true that is, home account ID matches but account response differs and vice versa? I thought this was added to address the difference between embedded frame vs the parent frame in the request and am curious where this bug surfaced?
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.
Yep that's the main use case. Also, parent's native account id seemed to be getting passed on to the embeddd frame, so I have included a fix for that in this PR as well.
…tion-library-for-js into native_account_switch_error
lib/msal-browser/src/interaction_client/NativeInteractionClient.ts
Outdated
Show resolved
Hide resolved
…t.ts Co-authored-by: Thomas Norling <thomas.norling@microsoft.com>
This PR fixes 2 issues: