From 34516abf9a6244e7a9b86143d2667ad29421823d Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 3 Dec 2021 15:33:36 +0100 Subject: [PATCH] feat(api): fixed jwt expiration date --- ee/api/chalicelib/core/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index 80fd5f0de..4a26e5282 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -693,7 +693,7 @@ def authenticate_sso(email, internal_id, exp=None): return authorizers.generate_jwt(r['id'], r['tenantId'], TimeUTC.datetime_to_timestamp(cur.fetchone()["jwt_iat"]), aud=f"front:{helper.get_stage_name()}", - exp=exp + TimeUTC.datetime_to_timestamp(cur.fetchone()["jwt_iat"]) \ + exp=(exp + TimeUTC.datetime_to_timestamp(cur.fetchone()["jwt_iat"])) \ if exp is not None else None) return None