From 25a79e4146e4132406ab5709c729bc5c99f06add Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 21 Jun 2024 15:40:07 +0530 Subject: [PATCH] Before computing with the keyattributes --- web/packages/accounts/pages/credentials.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx index d58c316a4c..d81b4cef67 100644 --- a/web/packages/accounts/pages/credentials.tsx +++ b/web/packages/accounts/pages/credentials.tsx @@ -201,6 +201,8 @@ const Page: React.FC = ({ appContext }) => { const getKeyAttributes: VerifyMasterPasswordFormProps["getKeyAttributes"] = async (kek: string) => { try { + if (sessionValidityCheck) await sessionValidityCheck; + const cryptoWorker = await ComlinkCryptoWorker.getInstance(); const { keyAttributes, @@ -279,8 +281,6 @@ const Page: React.FC = ({ appContext }) => { passphrase, ) => { try { - if (sessionValidityCheck) await sessionValidityCheck; - if (isFirstLogin() && passphrase) { await generateAndSaveIntermediateKeyAttributes( passphrase,