add providerAuthToken for MFA login

This commit is contained in:
Sheen Capadngan
2023-05-11 00:47:16 +08:00
parent a194e90644
commit 0ef5779776
3 changed files with 12 additions and 6 deletions
@@ -23,10 +23,12 @@ const client = new jsrp.client();
const attemptLoginMfa = async ({
email,
password,
providerAuthToken,
mfaToken
}: {
email: string;
password: string;
providerAuthToken?: string,
mfaToken: string;
}): Promise<Boolean> => {
return new Promise((resolve, reject) => {
@@ -39,6 +41,7 @@ const attemptLoginMfa = async ({
const { salt } = await login1({
email,
clientPublicKey,
providerAuthToken,
});
const {