Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("jwtAuth: Invalid Token") ErrVerifyFuncNotSet = errors.New("jwtAuth: You did not set VerifyFunc.") )
View Source
var HeaderKey = "Authorization" // Default Header name
View Source
var VerifyFunc = func(tok *jwt.Token) (interface{}, error) { return nil, ErrVerifyFuncNotSet }
you need to overwrite this to supply your key. you can make also make custom checks on the claim. claim[exp] is verified internaly by the jwt-go package
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.