π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add assertion to ensure secureStorageKeys is defined before resetting storage
AmanRajSinghMouryafe64789260b4
diff --git a/mobile/packages/configuration/lib/base_configuration.dart b/mobile/packages/configuration/lib/base_configuration.dartindex f85bc7eb11..b0ba34768e 100644--- a/mobile/packages/configuration/lib/base_configuration.dart+++ b/mobile/packages/configuration/lib/base_configuration.dart@@ -82,6 +82,10 @@ class BaseConfiguration {}Future<void> resetSecureStorage() async {+ assert(+ secureStorageKeys.isNotEmpty,+ 'secureStorageKeys must not be empty. Apps must explicitly define which keys to clear.',+ );for (final key in secureStorageKeys.toSet()) {await _secureStorage.delete(key: key);}