Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTContext ¶
type JWTContext struct {
PrivKey []byte
PubKey []byte
SigningMethod jwt.SigningMethod
ExpireAfter time.Duration
}
JWTContext brings important parameters for JWT generation and validation together
func (JWTContext) ReadKeyFiles ¶ added in v1.0.2
func (c JWTContext) ReadKeyFiles(priv string, pub string) error
ReadKeyFiles reads the given key files and updates the context values.
Click to show internal directories.
Click to hide internal directories.