From 45427b559a7e29bf175a2426d505f479455025d8 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sun, 7 Sep 2025 20:06:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E5=BB=B6=E9=95=BFJWT=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4=E8=87=B37=E5=A4=A9=E4=BB=A5?= =?UTF-8?q?=E6=94=B9=E5=96=84=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/utils/auth_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/auth_utils.py b/server/utils/auth_utils.py index 08da0380..fb1e51b8 100644 --- a/server/utils/auth_utils.py +++ b/server/utils/auth_utils.py @@ -8,7 +8,7 @@ import jwt # JWT配置 JWT_SECRET_KEY = os.environ.get("JWT_SECRET_KEY", "yuxi_know_secure_key") JWT_ALGORITHM = "HS256" -JWT_EXPIRATION = 24 * 60 * 60 # 24小时过期 +JWT_EXPIRATION = 7 * 24 * 60 * 60 # 7天过期 class AuthUtils: