Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthJWT ¶
type AuthJWT struct { jwt.StandardClaims UserId string `json:"user_id"` }
type JWTService ¶
type JWTService struct {
// contains filtered or unexported fields
}
func (*JWTService) GenerateToken ¶
func (s *JWTService) GenerateToken(data *AuthJWT) (string, error)
func (*JWTService) ParseToken ¶
func (s *JWTService) ParseToken(token string, out *AuthJWT)
func (*JWTService) ValidateToken ¶
func (s *JWTService) ValidateToken(token string) bool
Click to show internal directories.
Click to hide internal directories.