From 173a7f0753ed72720aa5bf8d4326fd4df78d5460 Mon Sep 17 00:00:00 2001 From: ybkang1108 Date: Tue, 13 Aug 2024 01:18:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=94=94=ED=8F=B4=ED=8A=B8=20=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EB=B0=A9=EC=8B=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mustgou/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mustgou/settings.py b/mustgou/settings.py index 9fbdf02..13dbb63 100644 --- a/mustgou/settings.py +++ b/mustgou/settings.py @@ -118,9 +118,9 @@ REST_FRAMEWORK = { - # "DEFAULT_AUTHENTICATION_CLASSES": [ - # "rest_framework_simplejwt.authentication.JWTAuthentication", - # ], + "DEFAULT_AUTHENTICATION_CLASSES": [ + "rest_framework_simplejwt.authentication.JWTAuthentication", + ], "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",), } @@ -129,8 +129,8 @@ "JWT_SECRET_KEY": SECRET_KEY, "JWT_ALGORITHM": "HS256", "JWT_ALLOW_REFRESH": True, - "JWT_EXPIRATION_DELTA": datetime.timedelta(days=7), - "JWT_REFRESH_EXPIRATION_DELTA": datetime.timedelta(days=28), + "JWT_EXPIRATION_DELTA": datetime.timedelta(days=365), + "JWT_REFRESH_EXPIRATION_DELTA": datetime.timedelta(days=730), }