Merge pull request #128 from SH5H/fixError

Fix login runtime error
This commit is contained in:
mv-turtle
2022-12-21 07:55:36 -05:00
committed by GitHub

View File

@ -42,9 +42,9 @@ const attemptLogin = async (
async () => {
const clientPublicKey = client.getPublicKey();
const { serverPublicKey, salt } = await login1(email, clientPublicKey);
try {
const { serverPublicKey, salt } = await login1(email, clientPublicKey);
client.setSalt(salt);
client.setServerPublicKey(serverPublicKey);
const clientProof = client.getProof(); // called M1