constants

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL