Before computing with the keyattributes

This commit is contained in:
Manav Rathi 2024-06-21 15:40:07 +05:30
parent 47630408b6
commit 25a79e4146
No known key found for this signature in database

View File

@ -201,6 +201,8 @@ const Page: React.FC<PageProps> = ({ 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<PageProps> = ({ appContext }) => {
passphrase,
) => {
try {
if (sessionValidityCheck) await sessionValidityCheck;
if (isFirstLogin() && passphrase) {
await generateAndSaveIntermediateKeyAttributes(
passphrase,