Merge pull request #343 from Infisical/mfa

MFA
This commit is contained in:
BlackMagiq
2023-02-21 12:47:56 +07:00
committed by GitHub
8 changed files with 66 additions and 17 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