Skip to content

Commit 92ee615

Browse files
committed
restore to recommended JWT lifetime
1 parent 00d7aa4 commit 92ee615

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ purplship.freightcom==2021.10.1
7575
purplship.purolator==2021.10.1
7676
purplship.royalmail==2021.11.1
7777
purplship.sendle==2021.11.1
78-
purplship.server==2022.1.3
78+
purplship.server==2022.1.4
7979
purplship.server.core==2022.1.3
8080
purplship.server.events==2022.1.3
8181
purplship.server.graph==2022.1.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022.1.3
1+
2022.1.4

server/main/purplship/server/settings/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@
276276

277277
# JWT config
278278
SIMPLE_JWT = {
279-
"ACCESS_TOKEN_LIFETIME": timedelta(days=2),
280-
"REFRESH_TOKEN_LIFETIME": timedelta(days=6),
279+
"ACCESS_TOKEN_LIFETIME": timedelta(days=3),
280+
"REFRESH_TOKEN_LIFETIME": timedelta(minutes=15),
281281
"ROTATE_REFRESH_TOKENS": False,
282282
"BLACKLIST_AFTER_ROTATION": False,
283283
"UPDATE_LAST_LOGIN": False,

0 commit comments

Comments
 (0)