Versions in this module Expand all Collapse all v0 v0.29.0 Nov 28, 2025 Changes in this version + func BearerTokenFromHeader(authHeader string) string + func GeneratePasswordResetToken() (string, error) + func GenerateVerificationCode(extraHardened bool) (string, error) + func ValidateEmailFormat(email string) string + func ValidatePasswordStrength(password string, cfg *authtypes.PasswordStrengthConfig) error + type InMemoryRateLimiter struct + func NewInMemoryRateLimiter(maxAttempts int, windowDuration time.Duration, lockoutDuration time.Duration) *InMemoryRateLimiter + func (r *InMemoryRateLimiter) Check(ip string, endpoint string) RateLimitResult + func (r *InMemoryRateLimiter) Stop() + type RateLimitResult struct + Allowed bool + RetryAfter time.Duration v0.28.0 Nov 28, 2025 Changes in this version + func LoginCodeGamma(extraHardened bool) string + func LoginCodeLength(extraHardened bool) int