Created
September 29, 2021 13:37
-
-
Save Skyyo/e0e8536a73b2425eb265ebc5119272c2 to your computer and use it in GitHub Desktop.
get request tag from request #network #retrofit #authenticator #401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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