OTP

Hello, im trying to verify if the OTP is correct from the AUTH application. But i have these errors when i try to verify the code
await authClient.twoFactor.verifyOtp({ code: code }, {
onSuccess() {
console.log("OTP verification successful");
router.push("/dashboard");
},
onError(ctx) {
console.error("OTP verification error:", ctx.error);
toast("Verification Error", {
description: ctx.error.message
});
}
});
await authClient.twoFactor.verifyOtp({ code: code }, {
onSuccess() {
console.log("OTP verification successful");
router.push("/dashboard");
},
onError(ctx) {
console.error("OTP verification error:", ctx.error);
toast("Verification Error", {
description: ctx.error.message
});
}
});
No description
Solution:
Im just stupid and used OTP instead of TOTP
Jump to solution
1 Reply
Solution
wvn
wvn2w ago
Im just stupid and used OTP instead of TOTP

Did you find this page helpful?