dj-jwt-auth 1.1.0__tar.gz → 1.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dj-jwt-auth
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: A Django package for JSON Web Token validation and verification. Using PyJWT.
5
5
  Home-page: https://www.example.com/
6
6
  Author: Konstantin Seleznev
@@ -21,6 +21,10 @@ Classifier: Topic :: Internet :: WWW/HTTP
21
21
  Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
22
22
  Requires-Python: >=3.8
23
23
  Description-Content-Type: text/markdown
24
+ Requires-Dist: Django>=3.0
25
+ Requires-Dist: pyjwt>=2.5.0
26
+ Requires-Dist: requests>=2.28.1
27
+ Requires-Dist: cryptography>=36.0.2
24
28
 
25
29
  # Django-JWT
26
30
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dj-jwt-auth
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: A Django package for JSON Web Token validation and verification. Using PyJWT.
5
5
  Home-page: https://www.example.com/
6
6
  Author: Konstantin Seleznev
@@ -21,6 +21,10 @@ Classifier: Topic :: Internet :: WWW/HTTP
21
21
  Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
22
22
  Requires-Python: >=3.8
23
23
  Description-Content-Type: text/markdown
24
+ Requires-Dist: Django>=3.0
25
+ Requires-Dist: pyjwt>=2.5.0
26
+ Requires-Dist: requests>=2.28.1
27
+ Requires-Dist: cryptography>=36.0.2
24
28
 
25
29
  # Django-JWT
26
30
 
@@ -29,6 +29,8 @@ class JWTAuthMiddleware(MiddlewareMixin):
29
29
  request.user = request._cached_user = UserHandler(info, request, raw_token).get_user()
30
30
  except ExpiredSignatureError:
31
31
  return JsonResponse(status=HTTPStatus.UNAUTHORIZED.value, data={"detail": "expired token"})
32
+ except UnicodeDecodeError as exc:
33
+ log.error(f"UnicodeDecodeError: {exc}")
32
34
  except Exception as exc:
33
- log.error("Unexpected error", exc)
35
+ log.error(f"Unexpected error: {exc}")
34
36
  return
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = dj-jwt-auth
3
- version = 1.1.0
3
+ version = 1.1.2
4
4
  description = A Django package for JSON Web Token validation and verification. Using PyJWT.
5
5
  long_description = file: README.md
6
6
  url = https://www.example.com/
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes