Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserID int `json:"name,omitempty"` jwt.StandardClaims }
type Parser ¶
type Parser struct {
Secret []byte
}
func (Parser) GenerateToken ¶
func (Parser) IsTokenExpired ¶
func (Parser) ParseToken ¶
func (p Parser) ParseToken(t string) (CustomClaims, error)
Click to show internal directories.
Click to hide internal directories.