Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
Internally calling the bcrypt.ComparePasswordHash()
func HashPassword ¶
Internally calling the bcrypt.GenerateFromPassword()
Types ¶
type JwtWrapper ¶
Token auth methods implemented on JwtWrapper
func (*JwtWrapper) GenerateToken ¶
func (w *JwtWrapper) GenerateToken(user models.User) (signedToken string, err error)
func (*JwtWrapper) ValidateToken ¶
func (w *JwtWrapper) ValidateToken(signedToken string) (claims *jwtClaims, err error)
Click to show internal directories.
Click to hide internal directories.