Skip to content

Throw timeout error in acquireTokenRedirect if redirect doesn't happen #7859

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

Merged
merged 5 commits into from
Jun 25, 2025

Conversation

tnorling
Copy link
Collaborator

If we resolve the acquireTokenRedirect promise too early (or at all) it could create a race with application code and the redirect. This PR blocks resolving the promise and throws a timeout error if the redirect wasn't executed in the allotted time.

@github-actions github-actions bot added the documentation Related to documentation. label Jun 24, 2025
@tnorling tnorling enabled auto-merge (squash) June 24, 2025 22:02
@tnorling tnorling merged commit 754511b into dev Jun 25, 2025
7 checks passed
@tnorling tnorling deleted the setTimeout-EAR-redirect branch June 25, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. msal-browser Related to msal-browser package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants