Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func DecodeAndValidateJwtToken(token, secret string) (*jwt.Token, error)
- func GenerateTokens(cfg config.JWTConfig, userEntity *model.UserEntity) (string, string, error)
- func GetClaimsFromJwtToken(token *jwt.Token) (jwt.MapClaims, error)
- func HashPassword(password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidJwtToken = errors.New("invalid JWT token")
)
Functions ¶
func CheckPasswordHash ¶
func GenerateTokens ¶
func GetClaimsFromJwtToken ¶
func GetClaimsFromJwtToken(token *jwt.Token) (jwt.MapClaims, error)
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.