hm I wonder if okhttp Authenticator can even handl...
# android-architecture
u
hm I wonder if okhttp Authenticator can even handle such case, afaik the return value is request to retry, and null to pass 401 downstream
d
If the user can not get the token from a refresh then they are not authenticated and therefore not allowed to do things that require authentication? No network, no token, no fun.
u
But, the were not refused a token, jsut network failed, if you then show network error to the ui, user can retry
and maybe then it will go through, without logging in again
d
But if the retry fails is what you were talking about, correct?
u
yes, but retry requiest fails on network, not 400/500 etc
what I mean is that .. I NEVER see a relogin screen on slack/twitter etc big apps, and surely have seen "failed to load" errors -- is it just coincidence?
j
We’re using grpc and I had to implement auth retry logic. I went with passing IO error downstream.
u
Yea I think its right thing to do