Skip to main content

Module two_factor

Module two_factor 

Source

Structs§

AccountLockoutConfig
Consecutive failed sign-in verifications across factors and challenges.
BackupCodesOutput
TotpOutput
TwoFactorConfig
Public configuration for the two-factor plugin.
TwoFactorPlugin
Two-factor authentication plugin providing TOTP, OTP, and backup code flows.

Enums§

TwoFactorBackupStorage
Backup persistence policy. Encrypted storage is the pinned default.
TwoFactorOtpStorage
Persistence format for delivered two-factor OTPs.

Traits§

SendTwoFactorOtp
Callback used by the two-factor plugin to deliver a one-time password.
TwoFactorBackupCipher
Async persistence callbacks for the complete backup-code JSON string.
TwoFactorOtpCipher
Application-owned reversible OTP representation.
TwoFactorOtpHasher
Application-owned irreversible OTP representation.