{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "account-2fa-01", "type": "registry:block", "description": "Two-factor authentication setup", "registryDependencies": [ "button", "card", "input", "label", "switch" ], "files": [ { "path": "creative-tim-ui/blocks/account-2fa-01/page.tsx", "content": "\"use client\"\n\nimport {\n AlertCircle,\n CheckCircle2,\n KeyRound,\n MessageSquare,\n Shield,\n Smartphone,\n} from \"lucide-react\"\n\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Card } from \"@/components/ui/card\"\n\nconst TwoFactorMethods = [\n {\n title: \"Security Keys\",\n description:\n \"Physical security keys provide the highest level of protection by requiring a hardware device for authentication.\",\n value: \"No security keys configured\",\n action: \"Add\",\n icon: KeyRound,\n isConfigured: false,\n recommended: true,\n },\n {\n title: \"Authenticator App\",\n description:\n \"Generate time-based one-time passwords (TOTP) using apps like Google Authenticator or Authy.\",\n value: \"Not configured\",\n action: \"Setup\",\n icon: Smartphone,\n isConfigured: false,\n recommended: true,\n },\n {\n title: \"SMS Number\",\n description:\n \"Receive verification codes via text message to your registered mobile number.\",\n value: \"+1 (555) 123-4567\",\n action: \"Edit\",\n icon: MessageSquare,\n isConfigured: true,\n recommended: false,\n },\n]\n\nexport default function Account2FA01() {\n return (\n
\n \n
\n
\n
\n \n
\n
\n

\n Two-Factor Authentication\n

\n

\n Add an extra layer of security to your account\n

\n
\n
\n \n \n Enabled\n \n
\n\n
\n {TwoFactorMethods.map((method, index) => {\n const Icon = method.icon\n return (\n \n
\n \n \n
\n
\n
\n

{method.title}

\n {method.recommended && (\n \n Recommended\n \n )}\n
\n

\n {method.description}\n

\n \n {method.isConfigured && (\n \n )}\n {method.value}\n

\n
\n
\n \n {method.action}\n \n
\n )\n })}\n \n\n
\n
\n \n
\n

Recovery Codes

\n

\n Generate backup codes that can be used if you lose access to\n your 2FA methods. Store them securely in a safe place.\n

\n \n
\n
\n\n
\n \n \n
\n
\n \n \n )\n}\n", "type": "registry:page", "target": "app/account-2fa/page.tsx" } ], "meta": { "iframeHeight": "800px", "container": "w-full bg-surface min-h-svh flex px-4 py-12 items-center md:py-20 justify-center min-w-0", "mobile": "component", "details": "Secure your account with two-factor authentication. Enable authenticator apps, configure backup codes, and manage security verification methods for enhanced account protection." }, "categories": [ "account" ] }