From e83042bb2adcc6785fb6a2f27313ec8d2a8d4367 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 7 Sep 2023 13:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90JWT=E8=BF=87=E6=9C=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BF=AE=E6=94=B9=E4=B8=BA5=E5=A4=A9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/jwt.go b/middleware/jwt.go index a3747b7..702dec9 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -20,7 +20,7 @@ func InitGinJwtMiddleware() (authMiddleware *jwt.GinJWTMiddleware) { authMiddleware, err := jwt.New(&jwt.GinJWTMiddleware{ Realm: "joylink.club", Key: []byte("joylink"), - Timeout: time.Hour, + Timeout: 5 * 24 * time.Hour, // MaxRefresh: time.Hour, IdentityKey: IdentityKey, PayloadFunc: func(data interface{}) jwt.MapClaims {