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 4cbea89 commit e3610e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/authentication/ardrive_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,14 @@ class ArDriveAuthImpl implements ArDriveAuth {

try {
await _userRepository.deleteUser();
await _databaseHelpers.deleteAllTables();

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

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

0 comments on commit e3610e7

Please sign in to comment.