Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 17, 2020 09:31
Show Gist options
  • Save lordcodes/b181c358ca1ce34b78ecd9cc8d139e6d to your computer and use it in GitHub Desktop.
Save lordcodes/b181c358ca1ce34b78ecd9cc8d139e6d to your computer and use it in GitHub Desktop.
Code for the article: "Authorization and retrying of web requests for OkHttp and Retrofit"
OkHttpClient.Builder()
.addInterceptor(authorizationInterceptor)
.authenticator(tokenRefreshAuthenticator)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment