import { QRCodeIcon } from "@/components/icons/QRCodeIcon"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Separator } from "@/components/ui/separator"; import { cn } from "@/util/utils"; import { EnvelopeClosedIcon, EyeNoneIcon, EyeOpenIcon, MobileIcon, } from "@radix-ui/react-icons"; import { useState } from "react"; import { Link } from "react-router-dom"; type Props = { values: { name: string; username: string; password: string; totp: string; }; onChange: (values: { name: string; username: string; password: string; totp: string; }) => void; }; function PasswordCredentialContent({ values: { name, username, password, totp }, onChange, }: Props) { const [totpMethod, setTotpMethod] = useState< "text" | "email" | "authenticator" >("authenticator"); const [showPassword, setShowPassword] = useState(false); return (
Contact us to set up two-factor authentication in workflows {" "} or{" "} see our documentation on how to set up two-factor authentication in workflows {" "} to get started.
)} {totpMethod === "authenticator" && (You need to find the authenticator secret from the website where you are using the credential. Here are some guides from popular authenticator apps:{" "} Bitwarden {", "} 1Password {", and "} LastPass {"."}