Skip to content

correct ID token lookup logic when reading from cache #7702

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ngomezdev
Copy link

In msal-node/OnBehalfOfClient, the client is incorrectly checking/validating the idTokens returned from cache.

It was assessing the idTokenMap value using Object.values(), which would always return []. This would result in the client failing to retrieve the idToken from cache.

This PR is changing that logic to use the appropriate Map.values() function.

In the obo client, when fetching the idTokens from cache,
the fetched Map value was incorrectly being assessed with Object.entries()
instead of Map.entries(). This would cause the function to always
return null.
@github-actions github-actions bot added the msal-node Related to msal-node package label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant