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
                    });
                }
            });
image.png
Solution
Im just stupid and used OTP instead of TOTP
Was this page helpful?