feat(inji-238): use a dummy key to request biometric auth everytime user opens the app

This commit is contained in:
Tilak Puli
2023-08-24 12:46:02 +05:30
parent 13e7d332f9
commit d5ca3ecbfe
4 changed files with 51 additions and 18 deletions

View File

@@ -20,13 +20,13 @@ import SecureKeystore from 'react-native-secure-keystore';
import {
decryptJson,
encryptJson,
HMAC_ALIAS,
isCustomSecureKeystore,
} from './cryptoutil/cryptoUtil';
const MMKV = new MMKVLoader().initialize();
const vcKeyRegExp = new RegExp(VC_ITEM_STORE_KEY_REGEX);
const vcDirectoryPath = `${DocumentDirectoryPath}/inji/VC`;
export const HMAC_ALIAS = 'Hmacalias';
async function generateHmac(
encryptionKey: string,