Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func JWTAuth ¶
func JWTAuth() gin.HandlerFunc
Types ¶
type CustomClaims ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateToken ¶
func (j *JWT) CreateToken(claims CustomClaims) (string, error)
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*CustomClaims, error)
Click to show internal directories.
Click to hide internal directories.