usso 0.27.7__py3-none-any.whl → 0.27.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
usso/core.py CHANGED
@@ -63,7 +63,7 @@ def is_expired(token: str, **kwargs) -> bool:
63
63
  decoded_token: dict = jwt.decode(token, options={"verify_signature": False})
64
64
  exp = decoded_token.get("exp", (now + timedelta(days=1)).timestamp())
65
65
  exp = datetime.fromtimestamp(exp)
66
- return exp >= now
66
+ return exp < now
67
67
 
68
68
 
69
69
  @cached(TTLCache(maxsize=128, ttl=10 * 60))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.27.7
3
+ Version: 0.27.8
4
4
  Summary: A plug-and-play client for integrating universal single sign-on (SSO) with Python frameworks, enabling secure and seamless authentication across microservices.
5
5
  Author-email: Mahdi Kiani <mahdikiany@gmail.com>
6
6
  Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
@@ -1,6 +1,6 @@
1
1
  usso/__init__.py,sha256=NnOS_S1a-JKTOlGe1nw-kCL3m0y82mA2mDraus7BQ2o,120
2
2
  usso/b64tools.py,sha256=HGQ0E59vzjrQo2-4jrcY03ebtTaYwTtCZ7KgJaEmxO0,610
3
- usso/core.py,sha256=KI_61zIxZNDB1QeZsYN7wgKYy54Huhdm2T2WDFq69Sw,8043
3
+ usso/core.py,sha256=akOET-sKPhdFQLdXCi8zDhEI2sBKjsdDqkUy7h0IBTE,8042
4
4
  usso/exceptions.py,sha256=syb8V6ysKivFk52NyPAkeMSMQkNi0h8yxDnz_uI2VkA,505
5
5
  usso/schemas.py,sha256=nYFqBMtnGJw13cSKSIMIZdxKVz3AIbnETDuiENHdl5g,850
6
6
  usso/client/__init__.py,sha256=ilGFrugI7bhGXVIcETdbRAye8S7k2mVjkEeziToVzSs,100
@@ -14,9 +14,9 @@ usso/session/__init__.py,sha256=tE4qWUdSI7iN_pywm47Mg8NKOTBa2nCNwCy3wCZWRmU,124
14
14
  usso/session/async_session.py,sha256=_9NU_kds1IuMLmBGCDcBnbpGiLUMJJaoAvuzSxs7jZ8,2278
15
15
  usso/session/base_session.py,sha256=1A12QulP6UHe1lqYEihGAcBaZ_7C09EWZt3fB6JvbOE,2347
16
16
  usso/session/session.py,sha256=GpQtXNau_q-2JQAWjJZ_JEA9QrVJa_3yzW5_lROyzXA,2333
17
- usso-0.27.7.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
18
- usso-0.27.7.dist-info/METADATA,sha256=vUAt5efneoSYiJEYBOqPi9kSEBDxpwxVf2b4vSVi_KQ,4528
19
- usso-0.27.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
- usso-0.27.7.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
21
- usso-0.27.7.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
22
- usso-0.27.7.dist-info/RECORD,,
17
+ usso-0.27.8.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
18
+ usso-0.27.8.dist-info/METADATA,sha256=5lseEywIDCqpBFPW6GQrRsC6xvkPfN-cXKxYOSFLTpg,4528
19
+ usso-0.27.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
+ usso-0.27.8.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
21
+ usso-0.27.8.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
22
+ usso-0.27.8.dist-info/RECORD,,
File without changes