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
When token is expired for the first time, it is refreshed and refreshInProgress is set to false. However, the useEffect interval is not cleared and refreshInProgress value inside refreshAccessToken is still true, and fetchWithRefreshToken is never called again.
The expected behavior
refreshAccessToken interval is cleared when refreshInProgress changes.
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
I'm using React 16 with SSR.
The current behavior
When token is expired for the first time, it is refreshed and
refreshInProgress
is set to false. However, the useEffect interval is not cleared andrefreshInProgress
value insiderefreshAccessToken
is stilltrue
, andfetchWithRefreshToken
is never called again.The expected behavior
refreshAccessToken
interval is cleared whenrefreshInProgress
changes.The text was updated successfully, but these errors were encountered: