forceRefresh does not work as intended with NAA #7546
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
more-information-needed
Use this label when you are waiting on information from the issue creator
msal-browser
Related to msal-browser package
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
4.0.2
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Public
Description
Force refresh not working as intended with NAA
In the 4.0.2 release to msal-browser, support for
forceRefresh
was added to NAA. This doesn't help with what it's supposed to though.There is a known issue with expired ID tokens being served from cache. Regular workaround for this is would be to use
forceRefresh
, but it doesn't do any good with NAA. Setting this flag to true, will skip the cache check, and then callbridgeProxy.getTokenSilent
which will yield the same tokens, which aren't refreshed.This is a huge issue, as there is no way to force refresh an expired ID token using NAA.
Error Message
No response
MSAL Logs
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
forceRefresh
to true when callingacquireTokenSilent
Expected Behavior
When setting
forceRefresh
to true, refreshed tokens should be returned (expiry extended).Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge
Regression
No response
The text was updated successfully, but these errors were encountered: