mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
Fix login runtime error
This commit is contained in:
@@ -42,9 +42,9 @@ const attemptLogin = async (
|
|||||||
async () => {
|
async () => {
|
||||||
const clientPublicKey = client.getPublicKey();
|
const clientPublicKey = client.getPublicKey();
|
||||||
|
|
||||||
const { serverPublicKey, salt } = await login1(email, clientPublicKey);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const { serverPublicKey, salt } = await login1(email, clientPublicKey);
|
||||||
|
|
||||||
client.setSalt(salt);
|
client.setSalt(salt);
|
||||||
client.setServerPublicKey(serverPublicKey);
|
client.setServerPublicKey(serverPublicKey);
|
||||||
const clientProof = client.getProof(); // called M1
|
const clientProof = client.getProof(); // called M1
|
||||||
|
|||||||
Reference in New Issue
Block a user