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
Describe the issue:
Currently we have implemented the httpRequest method to automatically refresh the token when a 401 status is encountered. But we do not have a method to block the HTTP requests when the token is being refreshed and this can lead to failures as the SDK will attempt to refresh the token again while it is already being refreshed.
We need an approach to block the HTTP requests until the token is refreshed and then retry the failed HTTP calls with the newly refreshed token. We have done a similar approach for SDK 0.4.xx versions. But we have missed this implementation on later versions.
Describe the issue:
Currently we have implemented the
httpRequest
method to automatically refresh the token when a 401 status is encountered. But we do not have a method to block the HTTP requests when the token is being refreshed and this can lead to failures as the SDK will attempt to refresh the token again while it is already being refreshed.We need an approach to block the HTTP requests until the token is refreshed and then retry the failed HTTP calls with the newly refreshed token. We have done a similar approach for SDK 0.4.xx versions. But we have missed this implementation on later versions.
How to reproduce:
httpRequest()
methodExpected behavior:
Environment information (Please complete the following information; remove any unnecessary fields) :
The text was updated successfully, but these errors were encountered: