2020-10-06 11:30:50 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
type JWT struct {
|
2022-03-27 16:52:11 +08:00
|
|
|
SigningKey string `mapstructure:"signing-key" json:"signing-key" yaml:"signing-key"` // jwt签名
|
2022-09-13 16:26:02 +08:00
|
|
|
ExpiresTime string `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"` // 过期时间
|
|
|
|
BufferTime string `mapstructure:"buffer-time" json:"buffer-time" yaml:"buffer-time"` // 缓冲时间
|
2022-03-27 16:52:11 +08:00
|
|
|
Issuer string `mapstructure:"issuer" json:"issuer" yaml:"issuer"` // 签发者
|
2020-10-06 11:30:50 +08:00
|
|
|
}
|