Update token refresh failure method, add documentation