Clear auth cache on first verification failure.

master
Alan Evans 2020-09-30 17:28:33 -03:00
parent 9835e31b46
commit 3796ce69e4
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ public final class GroupsV2Authorization {
} catch (NoCredentialForRedemptionTimeException e) {
Log.i(TAG, "Auth out of date, will update auth and try again");
cache.clear();
} catch (VerificationFailedException e) {
Log.w(TAG, "Verification failed, will update auth and try again", e);
cache.clear();
}
Log.i(TAG, "Getting new auth credential responses");