Documentation
¶
Overview ¶
Package jwt provides utilities to genearte and validate JWT credentials
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { Username string `json:"username"` Privileges models.Privileges `json:"privileges"` StandardClaims }
Claims is a custom claims struct
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
JWT wraps a JWT token, it's key and claims
func Parse ¶
Parse parses the input token and returns a new JWT instance or an error
type StandardClaims ¶
type StandardClaims jwt.StandardClaims
StandardClaims is a wrapper for jwt.StandardClaims
Click to show internal directories.
Click to hide internal directories.