mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 04:17:27 +00:00
Clear auth cache on first verification failure.
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user