I have a custom sign-in policy that calls a custom REST API that fetches some information about the user from my database.
That information needs to be updated every once in a while, but I can afford to update it once an hour.
The problem is, that we don't prompt the user to login every hour. Instead, we refresh the token silently every hour with acquireTokenSilent
I need to somehow intercept the acquireTokenSilent
, to make it call my custom REST API and pull the additional claims, just like I do it in the custom sign-in policy.
Is there a way to do it?