Fix login runtime error

This commit is contained in:
seunghyunOh
2022-12-18 15:50:13 +09:00
parent 33dddd440c
commit 6ed8f8af08

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