TF-4274 Persist encryption key hive avoid broken data

This commit is contained in:
dab246
2026-01-29 15:18:22 +07:00
committed by Dat H. Pham
parent 8fc5affb36
commit ed7a07c36f
2 changed files with 0 additions and 6 deletions
@@ -104,7 +104,6 @@ class CachingManager {
_oidcConfigurationCacheManager.clear(), _oidcConfigurationCacheManager.clear(),
_tokenOidcCacheManager.clear(), _tokenOidcCacheManager.clear(),
_authenticationInfoCacheManager.clear(), _authenticationInfoCacheManager.clear(),
_encryptionKeyCacheManager.clear(),
], eagerError: true); ], eagerError: true);
} catch (e) { } catch (e) {
logWarning('CachingManager::clearAccountDataCached: Cannot clear account data cache: $e'); logWarning('CachingManager::clearAccountDataCached: Cannot clear account data cache: $e');
@@ -18,11 +18,6 @@ class EncryptionKeyCacheManager extends CacheManagerInteraction {
return _encryptionKeyCacheClient.getItem(EncryptionKeyCache.keyCacheValue); return _encryptionKeyCacheClient.getItem(EncryptionKeyCache.keyCacheValue);
} }
Future<void> clear() {
return _encryptionKeyCacheClient
.deleteItem(EncryptionKeyCache.keyCacheValue);
}
@override @override
Future<void> migrateHiveToIsolatedHive() async { Future<void> migrateHiveToIsolatedHive() async {
try { try {