feat 废弃jwt 、 学识分
This commit is contained in:
@@ -40,6 +40,5 @@ serve:
|
||||
port: 18503
|
||||
|
||||
auth:
|
||||
secret: "bMa3mU4oCsX2KBex5o7GzwSnACpumFq3SdlDXYZgVTU="
|
||||
shortExpire: 60
|
||||
longExpire: 10080
|
||||
shortExpire: 3600
|
||||
longExpire: 604800
|
||||
|
||||
@@ -14,9 +14,8 @@ type Config struct {
|
||||
}
|
||||
|
||||
type AuthConfig struct {
|
||||
Secret string `yaml:"secret"`
|
||||
ShortExpire int64 `yaml:"shortExpire"`
|
||||
LongExpire int64 `yaml:"longExpire"`
|
||||
ShortExpire int64 `yaml:"shortExpire"`
|
||||
LongExpire int64 `yaml:"longExpire"`
|
||||
}
|
||||
|
||||
var cfg *Config
|
||||
|
||||
@@ -40,6 +40,5 @@ serve:
|
||||
port: 18503
|
||||
|
||||
auth:
|
||||
secret: "bMa3mU4oCsX2KBex5o7GzwSnACpumFq3SdlDXYZgVTU="
|
||||
shortExpire: 15
|
||||
longExpire: 10080
|
||||
shortExpire: 3600
|
||||
longExpire: 604800
|
||||
Reference in New Issue
Block a user