7,023 questions
Azure b2c - refresh token does not include custom claims

Sandeep Sagar
10
Reputation points
When a user logs in, I hit a REST API that verifies the username and password and returns some properties like personId, comUsername, wcfToken, and organizationCode. These properties are then returned to the user as an access token.
This is how my Access token looks like on the initial login
but when I refresh token
const tokenRequest = {
scopes: scopes,
account: msalInstance.getActiveAccount(),
forceRefresh: true,
} as SilentRequest;
console.log(await msalInstance.acquireTokenSilent(tokenRequest));
Why am I not receiving the expected claims? I heard something about persisted claims, but I'm not sure where exactly I have to write that code.
Windows for business Windows Client for IT Pros Directory services Active Directory
Sign in to answer