feat(api): fixed jwt expiration date
This commit is contained in:
parent
c6157cee4f
commit
34516abf9a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue