Versions in this module Expand all Collapse all v0 v0.0.7 Aug 18, 2026 Changes in this version + var ErrAccountLocked = errors.New("cuenta bloqueada temporalmente") + var ErrAuthenticationFailed = errors.New("credenciales inválidas") + var ErrIPBlocked = errors.New("dirección IP bloqueada temporalmente") + var ErrIncompatibleVersion = errors.New("versión o algoritmo inalcanzable") + var ErrInsufficientSecurityLevel = errors.New("nivel de seguridad insuficiente para esta operación") + var ErrInvalidCiphertext = errors.New("el texto cifrado no es válido o está corrupto") + var ErrInvalidHash = errors.New("el hash provisto no tiene un formato válido") + var ErrInvalidInput = errors.New("datos de entrada no válidos") + var ErrInvalidKeyLength = errors.New("longitud de clave no válida") + var ErrOperationNotAllowed = errors.New("operación no permitida en este momento") + var ErrPasswordChangeRequired = errors.New("se requiere cambiar la contraseña") + var ErrPermissionDenied = errors.New("permiso denegado") + var ErrRateLimitExceeded = errors.New("demasiados intentos, inténtelo más tarde") + var ErrSessionExpired = errors.New("sesión expirada") + var ErrTokenInvalid = errors.New("token inválido o expirado") + var ErrTokenRevoked = errors.New("token revocado") + var ErrWeakPassword = errors.New("la contraseña no cumple los requisitos de seguridad") + type Level uint8 + const LevelCritical + const LevelDefault + const LevelHigh + const LevelLow + const LevelMedium + func (l Level) GetDefaults() SecurityDefaults + func (l Level) IsValid() bool + func (l Level) String() string + type SecurityDefaults struct + AccessTokenDuration time.Duration + BcryptCost int + IdleTimeout time.Duration + LockoutDuration time.Duration + MaxConcurrentSessions int + MaxLoginAttempts int + PasswordResetMaxPerHour int + RefreshTokenDuration time.Duration + Require2FA bool + SessionTimeout time.Duration v0.0.6 Jan 29, 2026