Fetch the MPIN encryption key fresh before every encryption

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Abin Toppo
2026-09-25 16:02:03 +05:30
co-authored by Claude Opus 5.5
parent ddac198ea7
commit ee6a408a1a
3 changed files with 29 additions and 41 deletions
-2
View File
@@ -1,7 +1,6 @@
import AsyncStorage from '@react-native-async-storage/async-storage';
import { featureRemoteConfig } from '../../features/featureRemoteConfig';
import { mpinCrypto } from '../security/mpinCrypto';
import { sessionManager } from '../security/sessionManager';
import { secureStorage } from './secureStorage';
@@ -72,7 +71,6 @@ export const purgeUserData = async () => {
await featureRemoteConfig.forgetRoleScope().catch(() => {});
sessionManager.clear();
mpinCrypto.invalidate();
};
const clearAsyncStorage = async () => {