Documentation ¶
Index ¶
- Variables
- func CreateJWTClaim(username string, expiresAt time.Time) jwtClaims
- func GetJWTClaim(token *jwt.Token, key string) string
- func GetJWTKey() ([]byte, error)
- func GetJWTToken(r *http.Request, withClaims bool) (*jwt.Token, error)
- func IsJWTValid(token *jwt.Token) bool
- func ValidateJWT(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidJWT = errors.New("JWT provided is not validate (JWT validation failure)")
)
Functions ¶
func CreateJWTClaim ¶
func GetJWTClaim ¶
func IsJWTValid ¶
func IsJWTValid(token *jwt.Token) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.