mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
lint issue
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
[AuthenticationFactor.Phone]: factors.phone,
|
||||
[AuthenticationFactor.Recoverycode]: factors.recoveryCode
|
||||
};
|
||||
|
||||
|
||||
if (!factorMap[challengeType]) {
|
||||
throw new Error(`Authentication factor ${challengeType} is not enabled`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
challenge = await sdk.forConsole.account.createMFAChallenge({
|
||||
factor: challengeType
|
||||
});
|
||||
@@ -88,7 +88,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export async function verifyCurrent() {
|
||||
try {
|
||||
return await verify(challenge, code, challengeType, factors);
|
||||
|
||||
Reference in New Issue
Block a user