Versions in this module Expand all Collapse all v0 v0.0.1 Aug 24, 2026 Changes in this version + var VerificationCodePattern = regexp.MustCompile(`^[0-9]{6}$`) + func EnumStringSchema(values ...string) map[string]interface + func HasOnlyKeys(input map[string]interface{}, allowed ...string) bool + func InputObject(input interface{}) (map[string]interface{}, bool) + func InputSchema(properties map[string]interface{}, required ...string) map[string]interface + func LogInternalFailure(operation string) + func NewRandomToken() (string, error) + func NewVerificationCode() (string, error) + func NormalizeEmail(value string) (string, error) + func NormalizePhone(value string) (string, error) + func PhoneSchema() map[string]interface + func RequiredRawString(input map[string]interface{}, name string) (string, bool) + func RequiredString(input map[string]interface{}, name string) (string, bool) + func SecureStringEqual(left, right string) bool + func StringSchema(format string, minLength int, maxLength int) map[string]interface + func TokenHash(token string) string + func TokenInputSchema(name string) map[string]interface + func VerificationCodeHash(secret, recipient, code string) string + func VerificationCodeSchema() map[string]interface