Hiyve Components - v1.0.0
    Preparing search index...

    Function TfaVerification

    • Six-digit OTP input for completing two-factor authentication.

      Accepts numeric-only input and automatically enforces a 6-character limit. Includes a countdown timer that disables the resend button until the cooldown expires.

      Parameters

      Returns Element

      Key Features:

      • Numeric-only 6-digit input with large centered styling
      • Configurable resend cooldown with countdown display
      • Auto-focuses the code input on mount
      • "Back to login" navigation link
      • Customizable labels, colors, styles, and icons
      <TfaVerification
      onSuccess={(user) => navigate('/dashboard')}
      onBack={() => navigate('/login')}
      resendCooldown={90}
      />