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
Here is what I have put in place with java retrofit library and I wanted to know if it's possible (or will be) to do it with this one also.
So I had an Interceptor who was executing the request, once I was getting a 401 I was doing stuff to renew the token and retry the request with the new token.
It's very cool way to deal with token renewal easily :) I would like to put that in place again in dart but I don't see how it can be possible.
The text was updated successfully, but these errors were encountered:
Basically there no intercept before/after, just one method intercept with a Chain object and this object can proceed the request to get a response. The request is processed once by the last interceptors (by recursivity) and then pass back to all interceptors in order.
Would you be interested to make such changes @Jaguar-dart/authors ? For renew the token inside the interceptors that's the only way I see.
Here is what I have put in place with java retrofit library and I wanted to know if it's possible (or will be) to do it with this one also.
So I had an Interceptor who was executing the request, once I was getting a 401 I was doing stuff to renew the token and retry the request with the new token.
It's very cool way to deal with token renewal easily :) I would like to put that in place again in dart but I don't see how it can be possible.
The text was updated successfully, but these errors were encountered: