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
If certain conditions are met, even if getToken is executed with forceRefresh, getToken will only return the same token, and if more than 1 hour, the token's expiration time, elapses, the application will crash due to the token expiration.
It is a small project, but according to sentry it appears to be occurring several times a day.
Debugging the internal code showed that the exchangeTokenPromise doesn't cleared and kept returning the exchangeTokenPromise return value.
Thanks for figuring this out and providing a solution. Let me look into it and see if that's the best solution or if there's a simpler option. Either way we'll try to get a fix out next release.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
If certain conditions are met, even if
getToken
is executed with forceRefresh,getToken
will only return the same token, and if more than 1 hour, the token's expiration time, elapses, the application will crash due to the token expiration.It is a small project, but according to sentry it appears to be occurring several times a day.
Debugging the internal code showed that the
exchangeTokenPromise
doesn't cleared and kept returning theexchangeTokenPromise
return value.related pull request: #6617
Translated with www.DeepL.com/Translator (free version)
Steps to reproduce:
Relevant Code:
// TODO(you): code here to reproduce the problem
The text was updated successfully, but these errors were encountered: