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), }