Skip to content

Commit

Permalink
Increase access token time
Browse files Browse the repository at this point in the history
  • Loading branch information
rb-25 authored Dec 20, 2024
1 parent 0dcb342 commit 15a6f53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion student_welfare_backend/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -338,4 +338,6 @@
# ------------------------------------------------------------------------------
SIMPLE_JWT = {
"AUTH_HEADER_TYPES": ("Bearer",),
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=60),
"REFRESH_TOKEN_LIFETIME": timedelta(days=30)
}

0 comments on commit 15a6f53

Please sign in to comment.