Refresh token method were called more than once #12977
Unanswered
aufasyaihan
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to implement a refresh token function. Why does it sometimes work, but not other times? Sometimes the expiry date was updated, while at other times it wasn't. When I tried to leave the page for a while, then go back to the page, the refresh token automatically refreshed, and it worked, but when I tried to refresh the page manually, sometimes it didn't work
As you can see from the log, the API was working and have returned the new token. but the if check for the dates still uses the old expiry date.
Here's the code :
Beta Was this translation helpful? Give feedback.
All reactions