pypomes-jwt 0.5.3__py3-none-any.whl → 0.5.4__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.

Potentially problematic release.


This version of pypomes-jwt might be problematic. Click here for more details.

pypomes_jwt/jwt_data.py CHANGED
@@ -98,7 +98,7 @@ class JwtData:
98
98
  "access-max-age": access_max_age,
99
99
  "request-timeout": request_timeout,
100
100
  "local-provider": local_provider,
101
- "refresh-exp": datetime.now(timezone.utc) + timedelta(seconds=refresh_max_age)
101
+ "refresh-exp": datetime.now(tz=timezone.utc) + timedelta(seconds=refresh_max_age)
102
102
  }
103
103
  if algorithm in ["HS256", "HS512"]:
104
104
  control_data["secret-key"] = secret_key
@@ -116,7 +116,8 @@ class JwtData:
116
116
  custom_claims[key] = value
117
117
  standard_claims["exp"] = datetime(year=2000,
118
118
  month=1,
119
- day=1)
119
+ day=1,
120
+ tzinfo=timezone.utc)
120
121
  # store access data
121
122
  item_data = {
122
123
  "control-data": control_data,
@@ -190,7 +191,7 @@ class JwtData:
190
191
  control_data: dict[str, Any] = item_data.get("control-data")
191
192
  custom_claims: dict[str, Any] = item_data.get("custom-claims")
192
193
  standard_claims: dict[str, Any] = item_data.get("standard-claims")
193
- just_now: datetime = datetime.now(timezone.utc)
194
+ just_now: datetime = datetime.now(tz=timezone.utc)
194
195
 
195
196
  # is the current token still valid ?
196
197
  if just_now > standard_claims.get("exp"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pypomes_jwt
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary: A collection of Python pomes, penyeach (JWT module)
5
5
  Project-URL: Homepage, https://github.com/TheWiseCoder/PyPomes-JWT
6
6
  Project-URL: Bug Tracker, https://github.com/TheWiseCoder/PyPomes-JWT/issues
@@ -0,0 +1,7 @@
1
+ pypomes_jwt/__init__.py,sha256=1IyBb94cZjkXMibHrH_vh043b06QFh5UQ6HTYSDau28,978
2
+ pypomes_jwt/jwt_data.py,sha256=dIRkXvEfM0aWXqJVeeeeGVLH2G5qGnhrpVygCoKj7ws,17602
3
+ pypomes_jwt/jwt_pomes.py,sha256=7ett0sEGQoM7rb28wrPDlctoH1FdCj5b78TvnSPuYkY,11174
4
+ pypomes_jwt-0.5.4.dist-info/METADATA,sha256=QLGJLvKCBCk4AZXjUAwy8jq-tHL7YvT0UujntvA5YVE,631
5
+ pypomes_jwt-0.5.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
6
+ pypomes_jwt-0.5.4.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
7
+ pypomes_jwt-0.5.4.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- pypomes_jwt/__init__.py,sha256=1IyBb94cZjkXMibHrH_vh043b06QFh5UQ6HTYSDau28,978
2
- pypomes_jwt/jwt_data.py,sha256=pXw4MrUAXbLhs12y7F2KVTq78unvHi5JqM2v5EaD-Pw,17528
3
- pypomes_jwt/jwt_pomes.py,sha256=7ett0sEGQoM7rb28wrPDlctoH1FdCj5b78TvnSPuYkY,11174
4
- pypomes_jwt-0.5.3.dist-info/METADATA,sha256=Xv9efNA__a6Gi3jNNx4XFkVdzVeH4HPvCKNdLK12EFs,631
5
- pypomes_jwt-0.5.3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
6
- pypomes_jwt-0.5.3.dist-info/licenses/LICENSE,sha256=NdakochSXm_H_-DSL_x2JlRCkYikj3snYYvTwgR5d_c,1086
7
- pypomes_jwt-0.5.3.dist-info/RECORD,,