Skip to content

Commit

Permalink
Set JWT lifetimes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Palwisha-18 authored Feb 13, 2025
1 parent 64318ba commit c1bcff4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arbisoft_sessions_portal/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""
import os

from datetime import timedelta
from dotenv import load_dotenv
from pathlib import Path

Expand Down Expand Up @@ -162,6 +163,11 @@

ALLOW_ONLY_INTERNAL_USERS = True

SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(days=7),
"REFRESH_TOKEN_LIFETIME": timedelta(days=30),
}

try:
from .local import *
except Exception:
Expand Down

0 comments on commit c1bcff4

Please sign in to comment.