Auto logout if access token is expired, or retrieve another if refresh token is provided