diff --git a/student_welfare_backend/config/settings/base.py b/student_welfare_backend/config/settings/base.py index cd73e63..948c619 100644 --- a/student_welfare_backend/config/settings/base.py +++ b/student_welfare_backend/config/settings/base.py @@ -2,7 +2,7 @@ Base settings to build other settings files upon. """ from pathlib import Path - +from datetime import timedelta import environ BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent @@ -338,4 +338,6 @@ # ------------------------------------------------------------------------------ SIMPLE_JWT = { "AUTH_HEADER_TYPES": ("Bearer",), + "ACCESS_TOKEN_LIFETIME": timedelta(minutes=60), + "REFRESH_TOKEN_LIFETIME": timedelta(days=30) }