Remove storage of protected key

This commit is contained in:
Tuan Dang
2023-02-21 12:31:19 +07:00
parent 74e78bb967
commit 1ff2c61b3a
8 changed files with 14 additions and 15 deletions
@@ -166,9 +166,6 @@ export default function UserInfoStep({
SecurityClient.setToken(response.token);
saveTokenToLocalStorage({
protectedKey,
protectedKeyIV,
protectedKeyTag,
publicKey,
encryptedPrivateKey,
iv: encryptedPrivateKeyIV,
@@ -97,9 +97,6 @@ const attemptLogin = async (
});
saveTokenToLocalStorage({
protectedKey,
protectedKeyIV,
protectedKeyTag,
publicKey,
encryptedPrivateKey,
iv,
@@ -70,9 +70,6 @@ const attemptLoginMfa = async ({
});
saveTokenToLocalStorage({
protectedKey,
protectedKeyIV,
protectedKeyTag,
publicKey,
encryptedPrivateKey,
iv,
@@ -117,9 +117,6 @@ const changePassword = async (
});
saveTokenToLocalStorage({
protectedKey,
protectedKeyIV,
protectedKeyTag,
encryptedPrivateKey,
iv: encryptedPrivateKeyIV,
tag: encryptedPrivateKeyTag