Skip to content

Commit

Permalink
Fix for chicommons#244: Backend: Extend JWT token life in dev environ…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
maxgraziano committed May 29, 2024
1 parent b069944 commit 2a1c33e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/directory/settings/dev.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from .base import *
import os
from datetime import timedelta

DEBUG=True

Expand Down Expand Up @@ -53,4 +54,9 @@
'handlers': ['console'],
}
}
}

SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=30),
"REFRESH_TOKEN_LIFETIME": timedelta(hours=24),
}

0 comments on commit 2a1c33e

Please sign in to comment.