Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created September 29, 2021 13:37
Show Gist options
  • Save Skyyo/e0e8536a73b2425eb265ebc5119272c2 to your computer and use it in GitHub Desktop.
Save Skyyo/e0e8536a73b2425eb265ebc5119272c2 to your computer and use it in GitHub Desktop.
get request tag from request #network #retrofit #authenticator #401
authenticate {
if (response.request.tag(Invocation::class.java)?.arguments()?.contains(AUTH_TAG) == true) {
return null
}
//after this we can catch 401 on the request call site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment