Documentation ¶
Index ¶
- func ComparePassword(hashedPassword, password string) bool
- func GenerateToken(userId int) (string, error)
- func GetUserIDByToken(token string) (string, error)
- func HashAndSalt(password string) string
- func RandomHex(length int) string
- func RandomString(length int) string
- func ValidateToken(token string) (*jwt.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func GetUserIDByToken ¶
func HashAndSalt ¶
func RandomString ¶
func ValidateToken ¶
ValidateToken token validate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.