Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimsParam ¶
type ClaimsParam struct {
UserID int `json:"user_id"`
}
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func (*JWT) GenerateToken ¶
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(input string) (*ClaimsParam, error)
Click to show internal directories.
Click to hide internal directories.