errors.go from Authula/authula
// Source: https://github.com/Authula/authula | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package constants
import "errors"
var (
ErrTOTPNotEnabled = errors.New("totp authentication is not enabled")
ErrTOTPAlreadyEnabled = errors.New("totp authentication is already enabled")
ErrInvalidTOTPCode = errors.New("invalid totp code")
ErrBackupCodeIsRequired = errors.New("backup code is required")
ErrInvalidBackupCode = errors.New("invalid backup code")
ErrInvalidPendingToken = errors.New("invalid or expired pending token")
ErrPasswordRequired = errors.New("password is required")
ErrInvalidPassword = errors.New("invalid passw
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key