Skip to content

Commit

Permalink
fix: fix timedelta call (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste authored Jan 2, 2025
1 parent a8ecd62 commit 2b6fa8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layers/layer3_ldap/0600_ldap_code/repaire/api/app/token.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timezone
from datetime import datetime, timezone, timedelta
from typing import Any, Dict, List

import jwt
Expand All @@ -25,7 +25,7 @@ def make_jwt(
"display_name": user.display_name,
"iat": datetime.now(timezone.utc).replace(tzinfo=None),
"exp": datetime.now(timezone.utc).replace(tzinfo=None) + \
datetime.timedelta(seconds=delta),
timedelta(seconds=delta),
}
if len(limit_to_vhosts) > 0:
payload["limit_to_vhosts"] = limit_to_vhosts
Expand Down

0 comments on commit 2b6fa8c

Please sign in to comment.