feat(api): changed JWT exp

This commit is contained in:
Taha Yassine Kraiem 2021-12-03 15:54:01 +01:00
parent 10a3e9fac5
commit eaa515e0f2

View file

@ -693,7 +693,7 @@ def authenticate_sso(email, internal_id, exp=None):
rt = TimeUTC.datetime_to_timestamp(cur.fetchone()["jwt_iat"])
return authorizers.generate_jwt(r['id'], r['tenantId'],
rt, aud=f"front:{helper.get_stage_name()}",
exp=(exp + rt) if exp is not None else None)
exp=(exp + rt // 1000) if exp is not None else None)
return None