Versions in this module Expand all Collapse all v0 v0.0.3 Apr 14, 2024 v0.0.2 Apr 4, 2024 Changes in this version + func GenerateCode(len int) string + func GenerateForgetPasswordCode(length int) string + func GenerateHashToken(salt string) string + func GenerateUUID() string v0.0.1 Apr 2, 2024 Changes in this version + func GenerateToken(secretKey string, claims map[string]interface{}, expireDuration time.Duration) (accessToken string, expiration int64, err error) + func ValidateToken(secretKey string, token string) ([]byte, error) + func ValidateWithClaim(secretKey string, token string, claim jwt.Claims) error