-
Register TOTP
-
- Scan the QR Code or navigate to the URL manually.
-
+
Register 2-factor
+ {totpResponse && "uri" in totpResponse && "secret" in totpResponse ? (
+ <>
+
+ Scan the QR Code or navigate to the URL manually.
+
+
+ {/* {auth &&
{auth.to}
} */}
-
- {/* {auth &&
{auth.to}
} */}
- {totpResponse &&
- "uri" in totpResponse &&
- "secret" in totpResponse && (
- )}
-
+
{" "}
+ >
+ ) : (
+
+ {method === "email"
+ ? "Code via email was successfully added."
+ : method === "sms"
+ ? "Code via SMS was successfully added."
+ : ""}
+
+ )}