From 8e202305b3fada0c6f06f37038e2ec25e80a2deb Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 7 Jul 2023 18:34:11 +0800 Subject: [PATCH] Make JWT tokens last longer --- stude/config/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stude/config/settings.py b/stude/config/settings.py index e519d94..bca689c 100644 --- a/stude/config/settings.py +++ b/stude/config/settings.py @@ -199,3 +199,7 @@ else: SITE_NAME = 'Stud-E' + +JWT_TOKEN_LIFETIME = 10800 +ACCESS_TOKEN_LIFETIME = JWT_TOKEN_LIFETIME +REFRESH_TOKEN_LIFETIME = 24 * JWT_TOKEN_LIFETIME