Skip to content
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

Fix uncaught exceptions in acquireTokenSilent #7073

Merged
merged 4 commits into from
May 3, 2024

Conversation

tnorling
Copy link
Collaborator

@tnorling tnorling commented May 1, 2024

A recent change to optimize parallel iframed calls resulted in a regression that logged an uncaught exception to the console in the event that a single iframed call was made and failed. This happened because the stored promise rejected and didn't have a catch handler registered because there is not a parallel call dependent on this promise.

This PR resolves this issue by ensuring that the stored promise never rejects but rather resolves with a true/false indicating whether the call succeeded or failed.

Fixes #7052

@github-actions github-actions bot added the msal-browser Related to msal-browser package label May 1, 2024
@tnorling tnorling merged commit e5fa16e into dev May 3, 2024
20 of 21 checks passed
@tnorling tnorling deleted the address-uncaught-exception branch May 3, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Library emits uncaught exception if AcquireTokenSilent fails
3 participants