Skip to content

Commit

Permalink
Update ardrive_auth.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Dec 9, 2024
1 parent 5acf0d7 commit 4cbea89
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/authentication/ardrive_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,15 @@ class ArDriveAuthImpl implements ArDriveAuth {

try {
await _userRepository.deleteUser();
await _disconnectFromArConnect();
await _databaseHelpers.deleteAllTables();
(await _metadataCache).clear();
await _secureKeyValueStore.remove('password');
await _secureKeyValueStore.remove('biometricEnabled');

if (_currentUser != null) {
await _disconnectFromArConnect();
(await _metadataCache).clear();
await _secureKeyValueStore.remove('password');
await _secureKeyValueStore.remove('biometricEnabled');
}

currentUser = null;
_userStreamController.add(null);
} catch (e, stacktrace) {
Expand Down

0 comments on commit 4cbea89

Please sign in to comment.