将JWT过期时间 刷新时间 放置进入config

This commit is contained in:
pixel
2020-12-16 13:17:00 +08:00
parent 7613b85271
commit 72fd7beec0
5 changed files with 11 additions and 7 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
package config
type JWT struct {
SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
ExpiresTime int64 `mapstructure:"expires-time" json:"expiresTime" yaml:"expires-time"`
BufferTime int64 `mapstructure:"buffer-time" json:"bufferTime" yaml:"buffer-time"`
}