mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
feat: add configurable JWT timeout setting (#1014)
This commit is contained in:
@@ -22,8 +22,8 @@ func initParams() *jwt.GinJWTMiddleware {
|
||||
Key: []byte(singleton.Conf.JWTSecretKey),
|
||||
CookieName: "nz-jwt",
|
||||
SendCookie: true,
|
||||
Timeout: time.Hour,
|
||||
MaxRefresh: time.Hour,
|
||||
Timeout: time.Hour * time.Duration(singleton.Conf.JWTTimeout),
|
||||
MaxRefresh: time.Hour * time.Duration(singleton.Conf.JWTTimeout),
|
||||
IdentityKey: model.CtxKeyAuthorizedUser,
|
||||
PayloadFunc: payloadFunc(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user