Skip to main content

Module two_factor

Module two_factor 

Source

Structs§

AccountLockout
Consecutive verification failures allowed before the account is temporarily locked.
BackupCodeOptions
Recovery-code generation and passwordless management policy.
TwoFactorApi
Server-only Two Factor endpoints bound to this instance’s registered options. These operations have no public HTTP routes.
TwoFactorCallbacks
Two-factor callbacks with validated input and the active typed runtime.
TwoFactorConfig
Public configuration for the two-factor plugin.
TwoFactorPlugin
Two-factor authentication plugin providing TOTP, OTP, and backup code flows.

Enums§

BackupCodeStorage
Storage protection for the JSON array of backup codes.
TwoFactorOtpStorage
Storage protection for delivered second-factor OTPs.

Traits§

SendTwoFactorOtp
Callback used by the two-factor plugin to deliver a one-time password.
TwoFactorCipher
Reversible application encryption for OTPs or serialized backup codes.

Type Aliases§

TwoFactorHasher
Application hashing callback for stored second-factor codes.