Skip to content

Commit 63db963

Browse files
author
“Akshay
committed
[MOB-9043] - Comments
Adding comments on internal methods for improved readability
1 parent 8fd7684 commit 63db963

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableAuthManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ private void handleAuthTokenSuccess(String authToken, IterableHelper.SuccessHand
133133
authHandler.onTokenRegistrationSuccessful(authToken);
134134
}
135135

136+
// This method is called when there is an error receiving an the auth token.
136137
private void handleAuthTokenFailure(Throwable throwable) {
137138
IterableLogger.e(TAG, "Error while requesting Auth Token", throwable);
138139
handleAuthFailure(null, AuthFailureReason.AUTH_TOKEN_GENERATION_ERROR);
@@ -169,6 +170,7 @@ void reSyncAuth() {
169170
}
170171
}
171172

173+
// This method is called is used to call the authHandler.onAuthFailure method with appropriate AuthFailureReason
172174
void handleAuthFailure(String authToken, AuthFailureReason failureReason) {
173175
if (authHandler != null) {
174176
authHandler.onAuthFailure(new AuthFailure(getEmailOrUserId(), authToken, IterableUtil.currentTimeMillis(), failureReason));

0 commit comments

Comments
 (0)