title: Need to call an api to refresh token in android mvvm using retrofit ,where to write the logic?
body: <p>At the time of login we get a authorization token and a refresh token,authorization token is attached with all API in header ,but after some time <strong>authorization token will expire and we will get 401</strong>,to refresh we need to call a API with refresh token that we get at the time of login in response we will get a new authorization token and refresh token,problem is where to catch 401 and write at <strong>one point to call refresh token API</strong> and resend the previous failed API ,we cant call API  in interceptor.</p>