This commit is contained in:
peintnermax
2024-09-20 10:22:19 +02:00
parent c28eeb3cab
commit 26d13ae7f8
2 changed files with 1 additions and 3 deletions

View File

@@ -47,13 +47,11 @@ export default async function Page({
} else if (method === "sms") {
// does not work
await addOTPSMS(session.factors.user.id).catch((error) => {
console.error(error);
error = new Error("Could not add OTP via SMS");
});
} else if (method === "email") {
// works
await addOTPEmail(session.factors.user.id).catch((error) => {
console.error(error);
error = new Error("Could not add OTP via Email");
});
} else {

View File

@@ -189,9 +189,9 @@ export default function LoginPasskey({
});
})
.catch((error) => {
// we log this error to the console, as it is not a critical error
console.error(error);
setLoading(false);
// setError(error);
return null;
});
}