Documentation ¶
Index ¶
- func CreateJwtToken(tokenPairs map[string]interface{}) (string, error)
- func CreatePasswordHash(password string) (string, error)
- func DecodeJwtToken(tokenStr string) (map[string]interface{}, error)
- func IsPasswordRight(passwordHashInDb string, passwordLogin string) bool
- func SetJwtTokenKey(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJwtToken ¶
func CreatePasswordHash ¶
func DecodeJwtToken ¶
func IsPasswordRight ¶
passwordHashInDb: pasword hash str stored in db passwordLogin: password from login input
func SetJwtTokenKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.