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 clearing of temporary cache items #2696

Merged
merged 9 commits into from
Dec 7, 2020
Merged

Fix clearing of temporary cache items #2696

merged 9 commits into from
Dec 7, 2020

Conversation

tnorling
Copy link
Collaborator

@tnorling tnorling commented Dec 4, 2020

A regression was introduced when state was added to the temporary cache keys, resulting in temporary cache items not being cleared when state was unavailable. For instance when clicking the back button during a redirect or when closing the parent window during loginPopup.

This PR fixes this by adding another cleanRequest function for use in situations where state is unknown. This new function takes in the interaction type and searches the cache for a state value that has this interactionType and then uses all matching state values to clear the relevant temporary cache entries.

@github-actions github-actions bot added msal-browser Related to msal-browser package samples Related to the samples apps for the library. labels Dec 4, 2020
@jasonnutter jasonnutter added this to the @azure/msal-browser@2.8.0 milestone Dec 4, 2020
@coveralls
Copy link

coveralls commented Dec 4, 2020

Coverage Status

Coverage increased (+0.2%) to 81.839% when pulling 9b68678 on fix-clean-request into a3e1f45 on dev.

@jasonnutter jasonnutter merged commit b146553 into dev Dec 7, 2020
@jasonnutter jasonnutter deleted the fix-clean-request branch December 7, 2020 21:36
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 samples Related to the samples apps for the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants