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 (
The name of the credential
onChange({ name: e.target.value, username, password, totp, }) } />
onChange({ name, username: e.target.value, password, totp, }) } />
onChange({ name, username, totp, password: e.target.value, }) } />
{ setShowPassword((value) => !value); }} aria-label="Toggle password visibility" > {showPassword ? ( ) : ( )}

Two-Factor Authentication

Set up Skyvern to automatically retrieve two-factor authentication codes.

setTotpMethod("authenticator")} >
setTotpMethod("email")} >
setTotpMethod("text")} >
{(totpMethod === "text" || totpMethod === "email") && (

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" && (
onChange({ name, username, password, totp: e.target.value, }) } />

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 {"."}

)}
); } export { PasswordCredentialContent };