Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = fmt.Errorf("invalid token") ErrExpiredToken = fmt.Errorf("token has expired") )
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func (*JWTManager) GenerateToken ¶
func (m *JWTManager) GenerateToken(userID string, claims map[string]interface{}) (string, error)
func (*JWTManager) ValidateToken ¶
func (m *JWTManager) ValidateToken(tokenString string) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.