Sep 3, 2021
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.