Documentation
¶
Index ¶
- func GenerateCode(len int) string
- func GenerateForgetPasswordCode(length int) string
- func GenerateHashToken(salt string) string
- func GenerateToken(secretKey string, claims map[string]interface{}, expireDuration time.Duration) (accessToken string, expiration int64, err error)
- func GenerateUUID() string
- func ValidateToken(secretKey string, token string) ([]byte, error)
- func ValidateWithClaim(secretKey string, token string, claim jwt.Claims) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶ added in v0.0.2
GenerateCode return an integer code with given len
func GenerateForgetPasswordCode ¶ added in v0.0.2
GenerateForgetPasswordCode generate a code contains digit and texts
func GenerateHashToken ¶ added in v0.0.2
func GenerateToken ¶
func GenerateUUID ¶ added in v0.0.2
func GenerateUUID() string
func ValidateWithClaim ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.