Skip to content

ViewTwoFactorAuth

Overview

Two-factor authentication challenge view presented after initial login. Lets the user select an available verification method (TOTP, SMS, email), request a code to be sent for applicable methods (with a 60-second resend cooldown), and submit the code to complete authentication. A separate ghost CTA reveals a recovery-code path that swaps the form body to a single mono text input.

Theme entry: ViewTwoFactorAuth

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
iconOverrideObjectnullA partial icon registry ({ [componentName]: { [iconName]: { component, props } } }) merged with inherited and default icon entries; scopes icon overrides to this component and its descendants.

Slots

action-form-inner

Scoped slot.

Bindings

NameDescription
options
method
use-recovery-code

default

Scoped slot.

Bindings

NameDescription
send-code-methods
method
code
handle-send-code
cooldown-seconds
timer
loading
use-recovery-code
toggle-recovery

Source

client/lib/views/ViewTwoFactorAuth.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2