Does okhttp authenticator handle 403 error?

Viewed 1273

I'm using Okhttp Authenticator for updating my JWT tokens. But there is a problem, that the authenticate() method is called, when I'm getting 401 from backend. But when I'm getting 403 - token expired, the authenticate() method doesn't get called. Is there any good topic about how the authenticator() method works or can we call it manually? And also the main question - does it handle 403 response?

1 Answers
Related