Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTOTPEnabled = "totp.enabled" EventTOTPDisabled = "totp.disabled" EventTOTPVerified = "totp.verified" EventTOTPBackupUsed = "totp.backup_code_used" EventTOTPDeviceTrusted = "totp.device_trusted" )
View Source
const ( CookieTOTPPending = "totp_pending" CookieTOTPTrusted = "totp_trusted" )
Variables ¶
View Source
var ( ErrTOTPNotEnabled = errors.New("totp authentication is not enabled") ErrTOTPAlreadyEnabled = errors.New("totp authentication is already enabled") ErrInvalidTOTPCode = errors.New("invalid totp code") ErrInvalidBackupCode = errors.New("invalid backup code") ErrInvalidPendingToken = errors.New("invalid or expired pending token") ErrPasswordRequired = errors.New("password is required") ErrInvalidPassword = errors.New("invalid password") ErrAccountNotFound = errors.New("credential account not found") ErrUserNotFound = errors.New("user not found") ErrInvalidVerificationType = errors.New("invalid verification type") ErrPendingTokenExpired = errors.New("pending token has expired") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.