Solved this issue by adding all the required scopes to the DefaultAccessTokenScopes when adding the msal authentication service.
Seems that it prevents the client from requesting a new token due to missing scopes in the existing/cached token.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am getting error when trying to start project in debug mode in AthuenticationService.js
Its starts coming after I update my vs version to latest v17.12.4 and instal .net 9 sdk
ClientAuthError: token_refresh_required: Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.
Solved this issue by adding all the required scopes to the DefaultAccessTokenScopes when adding the msal authentication service.
Seems that it prevents the client from requesting a new token due to missing scopes in the existing/cached token.