TF-886 Clear AuthenticationInfo

This commit is contained in:
dab246
2022-09-06 19:13:15 +07:00
committed by Dat H. Pham
parent f108f5c726
commit 37d36e90a4
7 changed files with 26 additions and 19 deletions
@@ -50,6 +50,11 @@ class HiveCacheConfig {
return encryptionKey;
}
static Future<bool> removeEncryptionKey() {
final sharedPreference = Get.find<SharedPreferences>();
return sharedPreference.remove(LoginConstant.keyHiveEncrypt);
}
void registerAdapter() {
Hive.registerAdapter(MailboxCacheAdapter());
Hive.registerAdapter(MailboxRightsCacheAdapter());