mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 04:52:35 +00:00
logs
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user