({
+ endpoint: "/user/disable-tfa",
+ method: "POST",
+ session,
+ });
+ toast("Two-Factor Auth", {
+ icon: "🔓",
+ description: "Two-factor auth has been disabled for your account.",
+ });
+ setTimeout(() => {
+ window.location.reload();
+ }, 1500);
+ };
+
return (
{/* Name & Description */}
@@ -71,24 +107,16 @@ const TFASetting = (): ReactElement => {
{/* Setting */}
{hasFlag(user as User, UserFlag.TFA_ENABLED) ? (
-