Skip to content

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
@microsoft-github-policy-service
Copy link
Contributor

Reminder: This PR appears to be stale. If this PR is still a work in progress please mark as draft.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label May 5, 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 Needs: Attention 👋 Awaiting response from the MSAL.js team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant