---
id: SCR-PFM-SEC-019
title: Second-factor code
route: /mfa
surface: console
product_area: platform
module: security
revision: 1
status: draft
design_intent: proposed
implementation_evidence: observed
inference: []
source_sha:
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
purpose: Answer an authenticator-app challenge belonging to the current sign-in attempt.
supports:
- CAP-PFM-SEC-006
permission: 'none: within a sign-in challenge'
entry_from:
- /login
exits_to:
- The safe return destination
displays:
- field: The one-time authenticator code input.
  source: Sign-in challenge
  provenance: observed
actions:
- label: Verify
  operation_id: Console pool TOTP challenge response (Cognito)
  permission: none
  confirm: false
  provenance: observed
  source: react-console:components/auth/screens/mfa-screen.tsx
states:
- loading
- error
validation:
- BR-CAP-PFM-SEC-006-12
patterns:
- Authentication layout
- One-time code input
- FormAlert
- FieldError
component: components/auth/screens/mfa-screen.tsx (MfaScreen)
evidence:
- 'react-console at baf6dae: components/auth/screens/mfa-screen.tsx; the page route file; lib/security/api.ts,
  lib/hq/platform-ops.ts, lib/hq/platform.ts, lib/auth/*'
examined_at: '2026-10-23'
examiner: codex
controls: [TC-AVL-001, TC-AVL-005, TC-AZ-001, TC-AZ-002, TC-AZ-003, TC-AZ-004, TC-AZ-006, TC-CRY-001, TC-CRY-002, TC-CRY-003, TC-CRY-004, TC-DAT-001, TC-DAT-002, TC-DAT-003, TC-IAM-001, TC-IAM-002, TC-IAM-004, TC-IAM-005, TC-LOG-001, TC-LOG-002, TC-LOG-003, TC-LOG-004, TC-LOG-005, TC-MON-001, TC-MON-002, TC-MON-003, TC-PI-001, TC-PI-003, TC-PI-005, TC-SEC-001, TC-SEC-002, TC-SEC-003, TC-SEC-004, TC-TEN-001, TC-TEN-002, TC-TEN-003, TC-VEN-001, TC-VEN-002, TC-VEN-003]
---

# Second-factor code

## What the Screen Is For

Answer an authenticator-app challenge belonging to the current sign-in attempt.

## What It Shows and Lets People Do

The page consumes the retained sign-in challenge and submits the authenticator code. It navigates to the safe return destination after successful authentication.

## States and Errors

Code-length validation is local, while a rejected provider code appears as a form alert. Without a usable retained challenge the visitor must restart sign-in.

The state rows describe observed loading, empty, refusal or inactive handling where present. Linked validation rules belong to the planning layer; client feedback and authoritative service checks have distinct responsibilities.

## Patterns It Must Respect

The pattern list names the built shared components and interaction patterns checked for this screen. This contract describes the existing screen; it supplies no replacement visual design.
