pypomes-jwt 0.6.3__tar.gz → 0.6.4__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypomes_jwt
3
- Version: 0.6.3
3
+ Version: 0.6.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
@@ -12,4 +12,4 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.12
13
13
  Requires-Dist: cryptography>=44.0.1
14
14
  Requires-Dist: pyjwt>=2.10.1
15
- Requires-Dist: pypomes-core>=1.7.8
15
+ Requires-Dist: pypomes-core>=1.7.9
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
 
7
7
  [project]
8
8
  name = "pypomes_jwt"
9
- version = "0.6.3"
9
+ version = "0.6.4"
10
10
  authors = [
11
11
  { name="GT Nunes", email="wisecoder01@gmail.com" }
12
12
  ]
@@ -21,7 +21,7 @@ classifiers = [
21
21
  dependencies = [
22
22
  "PyJWT>=2.10.1",
23
23
  "cryptography>=44.0.1",
24
- "pypomes_core>=1.7.8"
24
+ "pypomes_core>=1.7.9"
25
25
  ]
26
26
 
27
27
  [project.urls]
@@ -107,7 +107,7 @@ class JwtData:
107
107
  "access-max-age": access_max_age,
108
108
  "request-timeout": request_timeout,
109
109
  "remote-provider": remote_provider,
110
- "refresh-exp": datetime.now(tz=timezone.utc).timestamp() + refresh_max_age
110
+ "refresh-exp": int(datetime.now(tz=timezone.utc).timestamp()) + refresh_max_age
111
111
  }
112
112
  if algorithm in ["HS256", "HS512"]:
113
113
  control_data["hs-secret-key"] = hs_secret_key
@@ -119,8 +119,8 @@ class JwtData:
119
119
  reserved_claims: dict[str, Any] = {
120
120
  "sub": account_id,
121
121
  "iss": reference_url,
122
- "exp": "<numeric-UTC-datetime>",
123
- "iat": "<numeric-UTC-datetime>",
122
+ "exp": 0,
123
+ "iat": 0,
124
124
  "jti": "<jwt-id>",
125
125
  }
126
126
  custom_claims: dict[str, Any] = {}
File without changes
File without changes
File without changes
File without changes