package
Version:
v0.0.0-...-f683405
Opens a new window with list of versions in this module.
Published: May 30, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Generate generates jwt map
Register register jwt with given config
type Config struct {
Secret string `yaml:"secret"`
Issuer string `yaml:"issuer"`
Audience []string `yaml:"audience"`
Age time.Duration `yaml:"age"`
Subject string `yaml:"subject"`
}
Config jwt configuration
type Payload struct {
jwt.Payload
Data map[string]interface{} `json:"data,omitempty"`
Empty bool `json:"empty,omitempty"`
}
Payload jwt payload
Verify verifies jwt token
ExtendPeriod extends jwt validity to given duration
Remove removes jwt parameter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.