I have a b2c sign in custom policy (which calls a REST API Connector)
In my spa app, I can sign in successfully (using msaljs 2).
But if I then call msalInstance.acquireTokenSilent()
, it does not run through the custom policy again (ie, does not call my REST API Connector)
Calling either msalInstance.acquireTokenRedirect
or msalInstance.acquireTokenPopup
runs through the custom policy as I expected.
I have tried passing in forceRefresh
, but no luck
msalInstance.acquireTokenSilent({ scopes, forceRefresh: true })
Is there any way to force acquireTokenSilent
to run through the custom policy again, without requiring a popup/redirect?
Thanks