Skip to content

Commit fa07a0a

Browse files
hakansuluogluminbi
authored andcommitted
Update CognitoUser.java
1 parent b985b23 commit fa07a0a

File tree

1 file changed

+1
-0
lines changed
  • aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/mobileconnectors/cognitoidentityprovider

1 file changed

+1
-0
lines changed

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/mobileconnectors/cognitoidentityprovider/CognitoUser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ protected CognitoUserSession getCachedSession() {
952952
clearCachedTokens();
953953
throw new CognitoNotAuthorizedException("User is not authenticated", nae);
954954
} catch (final Exception e) {
955+
clearCachedTokens();
955956
throw new CognitoInternalErrorException("Failed to authenticate user", e);
956957
}
957958
}

0 commit comments

Comments
 (0)