--

Don't forget to give your accountRepository.refreshAccessToken it's own or a different okHttp client. By default each client has a dispatcher with a limit of 5. If you don't and you have a lot of concurrent connections and all 5 go unauthenticated at the same time there will be no more dispatchers available on which to refresh the token.

--

--

Michael Ferguson
Michael Ferguson

Written by Michael Ferguson

Android software developer. Views and opinions expressed are my own and not that of my employer.

No responses yet