You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Acquires a token silently when a user specifies the account the token is requested for. * * This API expects the user to provide an account object and looks into the cache to retrieve the token if present. * There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token. * In case the refresh_token is expired or not found, an error is thrown * and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`). */acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult|null>;
Which is basically what I am doing and it works but sometimes I get the following error:
"msg":"no_tokens_found: No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken().",
Can someone explain me what's going on? What am I missing? Ofc I am still missing some mechanism to verify if the token expired or not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm doing something like:
then for requesting a refresh_token
Based on the documentation:
Which is basically what I am doing and it works but sometimes I get the following error:
Can someone explain me what's going on? What am I missing? Ofc I am still missing some mechanism to verify if the token expired or not.
Beta Was this translation helpful? Give feedback.
All reactions