b2c + msaljs acquireTokenSilent does not execute custom policy?

JL 51 Reputation points

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?


Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,907 questions
Azure Active Directory External Identities
0 comments No comments
{count} votes