MSAL - handleRedirectPromise() returns null token or cache errors in JS.
Hi to all, I am Juan Francisco Sánchez a web app dev,
I am implementing AAD's user system. Now we have deployed it with the redirect option instead of popup. To handle the token returned after a sign in, we use the handleRedirectPromise() function as shown below.
Often when the promise is resolved the tokenResponse that returns is null, and other times throws the error "no_token_request_cache_error: No token request found in cache.", and sometimes it works well. I don't understand why this could happen so if anyone has any knowledge about this, i will truly appreciate his help.
Thanks to all of you.