From f3ecae8e53454da53d8880588e84e4dd04b98dfb Mon Sep 17 00:00:00 2001 From: urihclaroty <71154533+urihclaroty@users.noreply.github.com> Date: Tue, 13 Dec 2022 12:17:46 +0200 Subject: [PATCH] Increase JWT expiration Some clients have their time zone set in a wrong way (i.e UTC time is actually in their time zone). To allow for this, we increased the JWT lease default to 25 hours. --- jwthenticator/consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwthenticator/consts.py b/jwthenticator/consts.py index 5ab76bd..d83312c 100644 --- a/jwthenticator/consts.py +++ b/jwthenticator/consts.py @@ -17,7 +17,7 @@ def days_to_seconds(days: int) -> int: # JWT consts JWT_ALGORITHM = env.str("JWT_ALGORITHM", "RS256") JWT_ALGORITHM_FAMILY = env.str("JWT_ALGORITHM_FAMILY", "RSA") -JWT_LEASE_TIME = env.int("JWT_LEASE_TIME", 30 * 60) # In seconds - 30 minutes +JWT_LEASE_TIME = env.int("JWT_LEASE_TIME", 25 * 3600) # In seconnds - 25 hours to allow for client time zone issues JWT_AUDIENCE = env.list("JWT_AUDIENCE", []) # Token consts