TF-4274 Clear encryption keys with account cache.

This commit is contained in:
dab246
2026-01-29 10:35:25 +07:00
committed by Dat H. Pham
parent 18d9a47431
commit 4b3a0692a9
4 changed files with 11 additions and 5 deletions
@@ -104,6 +104,7 @@ class CachingManager {
_oidcConfigurationCacheManager.clear(),
_tokenOidcCacheManager.clear(),
_authenticationInfoCacheManager.clear(),
_encryptionKeyCacheManager.clear(),
], eagerError: true);
} catch (e) {
logWarning('CachingManager::clearAccountDataCached: Cannot clear account data cache: $e');
@@ -18,6 +18,11 @@ class EncryptionKeyCacheManager extends CacheManagerInteraction {
return _encryptionKeyCacheClient.getItem(EncryptionKeyCache.keyCacheValue);
}
Future<void> clear() {
return _encryptionKeyCacheClient
.deleteItem(EncryptionKeyCache.keyCacheValue);
}
@override
Future<void> migrateHiveToIsolatedHive() async {
try {
@@ -617,6 +617,7 @@ class MailboxDashBoardController extends ReloadableController
if (shouldPrevent) {
event.preventDefault();
return;
}
if (PlatformInfo.isWeb) {