Skip to content

Commit b788c47

Browse files
Sync monorepo state at "Fix bad token expiration check in python client" (#113)
Syncing from userclouds/userclouds@36437abc09a44912b8333eaaa01abb57294b15e9
1 parent da94c65 commit b788c47

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.9.1 - 05-08-2024
4+
5+
- Fix bad token expiration check
6+
37
## 1.9.0 - 30-07-2024
48

59
- Remove optional "email" argument from ListUsers, since the handler ignores it.

src/usercloudssdk/token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def is_token_expiring(token: str | None) -> bool:
3030
expiration_time = decoded_token.get("exp")
3131
if not expiration_time:
3232
return True
33-
return expiration_time > time.time()
33+
return expiration_time < time.time()

0 commit comments

Comments
 (0)