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

Make clear synchronous in msal-node #7364

Merged
merged 21 commits into from
Oct 11, 2024
Merged

Make clear synchronous in msal-node #7364

merged 21 commits into from
Oct 11, 2024

Conversation

shylasummers
Copy link
Contributor

@shylasummers shylasummers commented Oct 7, 2024

Currently, ClientApplication.clearCache is synchronous even though it calls NodeStorage.clear, an asynchronous function. Since clear does not contain any asynchronous elements, this PR:

  • Relabels clear as a synchronous function
  • Removes async clear from CacheManager (since clear is msal-browser should be kept asynchronous)

@github-actions github-actions bot added msal-node Related to msal-node package msal-common Related to msal-common package labels Oct 7, 2024
@shylasummers shylasummers changed the title Make clear synchronous Make clear synchronous in msal-node Oct 7, 2024
@github-actions github-actions bot added the documentation Related to documentation. label Oct 7, 2024
@tnorling tnorling merged commit f0c5f02 into dev Oct 11, 2024
5 of 8 checks passed
@tnorling tnorling deleted the clearCacheAsync branch October 11, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. msal-common Related to msal-common package msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants