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
Request
Refresh the accessToken before refreshToken is expired. This would result in less unnecessary requests we know would fail with 401.
Reasoning
With the current implementation we are expecting 401, which is fine if the accessToken is valid for days. However a short span access token, like an hour, would mean a lot more unnecessary requests.
This can be circumvented by observing the accessTokenExpiration before the request is even fired.
The text was updated successfully, but these errors were encountered:
Request
Refresh the accessToken before refreshToken is expired. This would result in less unnecessary requests we know would fail with 401.
Reasoning
With the current implementation we are expecting 401, which is fine if the accessToken is valid for days. However a short span access token, like an hour, would mean a lot more unnecessary requests.
This can be circumvented by observing the accessTokenExpiration before the request is even fired.
The text was updated successfully, but these errors were encountered: