Skip to content

Commit

Permalink
fix (Linux): Secure storage delete key exception if not present (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored Dec 7, 2023
1 parent a293f72 commit 36ed4a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/services/storage/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class SecureStorage extends Storage {

@override
Future<void> delete({required String key}) async {
await _storage.delete(key: key);
return _storage.containsKey(key: key).then((v) {
if (v) return _storage.delete(key: key);
});
}

@override
Expand Down

0 comments on commit 36ed4a1

Please sign in to comment.