Step-up dialog
v0.64.0, changelogBetaAsks 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): offersonSetupinstead of a field.- verifyrequired
(proof: StepUpProof) => Promise<void>Checks the proof with your auth server; rejects with an error whosecodepicks 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>