<OkHttp Authenticator looping after getting new ti...
# stackoverflow
r
OkHttp Authenticator looping after getting new tioken request I'm making a basic application to hit Twitch servers that use short-lived tokens for the APIs. So I've made an okhttp3.Authenticator class with Retrofit and Hilt for handling the adding of tokens to authenticate very similar to several others I've seen in tutorials and even here in SO. The usual when it 401s, fetches a new token and adds it to the response in a newRequest header but for some reason it keeps looping at that stage and breaks with too many requests error. It is a very similar...