This commit is contained in:
Jake Barnby
2024-02-22 01:27:16 +13:00
parent 03e1693333
commit 16fd39d1d7
+3 -1
View File
@@ -16,7 +16,9 @@
async function verify() {
try {
disabled = true;
const challenge = await sdk.forConsole.account.create2FAChallenge(AuthenticationFactor.Totp);
const challenge = await sdk.forConsole.account.create2FAChallenge(
AuthenticationFactor.Totp
);
await sdk.forConsole.account.updateChallenge(challenge.$id, code);
await invalidate(Dependencies.ACCOUNT);
trackEvent(Submit.AccountCreate);