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
Hello, I have been using fresh_dio package for a Dio http client. I was able to implement the refreshToken + shouldRefresh functions, and it is refreshing the token whenever the http call fail based on my conditions.
However, the initial fired request does fail. Is it possible to retry the request after refreshing the token? If not, what best approach to handle this? Should I create an interceptor which check the token expiration time before firing the request?
The text was updated successfully, but these errors were encountered:
Hello, I have been using fresh_dio package for a Dio http client. I was able to implement the
refreshToken
+shouldRefresh
functions, and it is refreshing the token whenever the http call fail based on my conditions.However, the initial fired request does fail. Is it possible to retry the request after refreshing the token? If not, what best approach to handle this? Should I create an interceptor which check the token expiration time before firing the request?
The text was updated successfully, but these errors were encountered: