From a28b6d418189f90ad8c2fc4d4998e75e03c13f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=88=E5=86=B0?= <8049399+manggooo@user.noreply.gitee.com> Date: Thu, 14 Jul 2022 03:46:55 +0000 Subject: [PATCH 1/2] update mepauth/controllers/token.go. --- mepauth/controllers/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mepauth/controllers/token.go b/mepauth/controllers/token.go index 910ddfd..1798579 100644 --- a/mepauth/controllers/token.go +++ b/mepauth/controllers/token.go @@ -129,7 +129,7 @@ func generateJwtToken(appInsId string, clientIp string) (*string, error) { } claims := jwtClaims{ StandardClaims: jwt.StandardClaims{ - ExpiresAt: jwt.At(time.Now().Add(time.Minute * 5)), // five minutes + ExpiresAt: jwt.At(time.Now().Add(time.Hour * 1 * 24 * 30)), Issuer: mepAuthKey, Subject: appInsId, }, -- Gitee From aa251cdd9c1dada71ad6657d9d2d0f9aacb6a453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=88=E5=86=B0?= <8049399+manggooo@user.noreply.gitee.com> Date: Thu, 14 Jul 2022 03:47:30 +0000 Subject: [PATCH 2/2] update mepauth/util/const.go. --- mepauth/util/const.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mepauth/util/const.go b/mepauth/util/const.go index 94e6b5a..83b9c5d 100644 --- a/mepauth/util/const.go +++ b/mepauth/util/const.go @@ -41,7 +41,7 @@ const ( maxHostNameLen = 253 BaseVal = 10 MaxMatchVarSize = 3 - ExpiresVal = 60 * 5 // five minutes + ExpiresVal = 3600 * 24 * 30 ) // End point related constants -- Gitee