Okhttp refresh expired token when multiple requests are sent to the server
问题 I have a ViewPager and three webservice calls are made when ViewPager is loaded simultaneously. When first one returns 401, Authenticator is called and I refresh the token inside Authenticator , but remaining 2 requests are already sent to the server with old refresh token and fails with 498 which is captured in Interceptor and app is logged out. This is not the ideal behaviour I would expect. I would like to keep the 2nd and 3rd request in the queue and when the token is refreshed, retry the