fix🐛: 修复jwt密钥引用错误问题(#545)
This commit is contained in:
1 parent
6f67628012
commit
8baae5e712
1 file changed
+1
-1
@@ -20,7 +20,7 @@ func AuthInit() (*jwt.GinJWTMiddleware, error) {
|
|||||||
}
|
}
|
||||||
return jwt.New(&jwt.GinJWTMiddleware{
|
return jwt.New(&jwt.GinJWTMiddleware{
|
||||||
Realm: "test zone",
|
Realm: "test zone",
|
||||||
Key: []byte(config.ApplicationConfig.JwtSecret),
|
Key: []byte(config.JwtConfig.Secret),
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
MaxRefresh: time.Hour,
|
MaxRefresh: time.Hour,
|
||||||
PayloadFunc: handler.PayloadFunc,
|
PayloadFunc: handler.PayloadFunc,
|
||||||
|
|||||||
Reference in new issue
Block a user