Beta

Two Factor Setup

A dark-themed 2FA setup modal with animated QR scanner, backup code display, copy-to-clipboard, and 6-digit OTP input.

Made by lucasInspired by serhiiiantoniuk

Secure Protocol

Position your camera within the frame to authorize this session.

2FA Setup

Scan with your authenticator app to enable Level 4 access.

Manual Backup Code

ORBT-7X92-KLL9-001P

Use this code if you're unable to scan the QR graphic.

Verification Token

Installation

Usage

import { TwoFactorSetup } from "@/components/targetblank/components/two-factor-setup";

export default function Example() {
  return (
    <TwoFactorSetup
      backupCode="ORBT-7X92-KLL9-001P"
      onVerify={(token) => console.log("Token:", token)}
      onCancel={() => console.log("Cancelled")}
      onClose={() => console.log("Closed")}
    />
  );
}

Props

PropTypeDefault
className?
string
-
onClose?
() => void
-
onCancel?
() => void
-
onVerify?
(token: string) => void | Promise<void>
-
qrSrc?
string
-
backupCode?
string
"ORBT-7X92-KLL9-001P"