Documentation
¶
Index ¶
- func CreateToken(username string, secretKey []byte) (string, error)
- func GetSecret() []byte
- func GetValidate() *validator.Validate
- func HashPassword(password string) (string, error)
- func ParseToken(tokenString string, secretKey []byte) (*jwt.Token, error)
- func RandomString(length int) string
- func VerifyPassword(password, hash string) error
- func VerifyTokenAndMapClaims(tokenString string, secretKey []byte) (jwt.MapClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
Function to create JWT tokens with claims
func GetValidate ¶
func GetValidate() *validator.Validate
func HashPassword ¶
func ParseToken ¶
func RandomString ¶
func VerifyPassword ¶
func VerifyTokenAndMapClaims ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.