Skip to content
Design System
GitHub

Asks for a fresh check (an authenticator code or the password) before a sensitive action, then hands back to the action.

API reference

Generated from the types. Every part also takes className.

StepUpDialog

openrequired
boolean
setup
boolean = falseNo second factor yet (TWO_FACTOR_SETUP_REQUIRED): offers onSetup instead of a field.
verifyrequired
(proof: StepUpProof) => Promise<void>Checks the proof with your auth server; rejects with an error whose code picks the message.
onVerifiedrequired
() => void
onCancelrequired
() => voidCancel, Esc, the close button or a click outside.
onSetup
() => voidGoes to the second-factor setup (your router); the pending action is cancelled.
methods
readonly ("totp" | "password")[] = ["totp"]Which proofs to offer, the first shown first.
labels
Partial<StepUpDialogLabels>