mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
refactor(INJI-192):fix decrypt null data while downloading VC (#909)
Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
This commit is contained in:
@@ -142,7 +142,10 @@ class Storage {
|
||||
|
||||
private static async readHmacForVC(key: string, encryptionKey: string) {
|
||||
const encryptedHMACofCurrentVC = await MMKV.getItem(getVCKeyName(key));
|
||||
return decryptJson(encryptionKey, encryptedHMACofCurrentVC);
|
||||
if (encryptedHMACofCurrentVC) {
|
||||
return decryptJson(encryptionKey, encryptedHMACofCurrentVC);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static async readVCFromFile(key: string) {
|
||||
|
||||
Reference in New Issue
Block a user