dj-jwt-auth 1.1.0__py3-none-any.whl → 1.1.2__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.
@@ -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,10 +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
+ 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
28
28
 
29
29
  # Django-JWT
30
30
 
@@ -1,5 +1,5 @@
1
1
  django_jwt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- django_jwt/middleware.py,sha256=zptdBRv8ea0Wo1yFsq6znHZKwqRtTaC3fKFR8Fe0S3U,1075
2
+ django_jwt/middleware.py,sha256=pZv7L4BdtJMvgFF6JfLGl02hbx46VDGFCa08PS5cajo,1172
3
3
  django_jwt/settings.py,sha256=MzBcuV4h_2KG_Xv3e2C7aT58ctxao8fHj6KwVvYMZY0,1049
4
4
  django_jwt/user.py,sha256=PFFM4duV8_rTd87dQY1YX8nVt1azNth6WJ_kdnzkvHw,3508
5
5
  django_jwt/utils.py,sha256=ubvMA8ghmRTouSE4ATDb7DhjtLPEwD9W-mgIGLU_fLI,1829
@@ -8,7 +8,7 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  tests/models.py,sha256=K5e0QCgyZeLLHS6i3KRMQHooql47g7qqni7f9tKQrIY,251
9
9
  tests/test.py,sha256=KSppSktX_4b93wS8Ku4LOwtMbP4zFMMtgUsdOY4tUts,5123
10
10
  tests/urls.py,sha256=D5FhDSVAudurkrpkCZZPnDvgXSgifwFVB3nAlYBg7uQ,212
11
- dj_jwt_auth-1.1.0.dist-info/METADATA,sha256=gtsxLHswG8vSh9rAE6tRrbcYXNub_S_AEdFyt_ep01A,3179
12
- dj_jwt_auth-1.1.0.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
13
- dj_jwt_auth-1.1.0.dist-info/top_level.txt,sha256=58O7TdK-yECZcbmPc52KNlBFpjIUlENuZubCxaSOxus,17
14
- dj_jwt_auth-1.1.0.dist-info/RECORD,,
11
+ dj_jwt_auth-1.1.2.dist-info/METADATA,sha256=u0pdkzO7rK3weopirz_WmYDfgOM4W4gtVDC2SGTu9_8,3171
12
+ dj_jwt_auth-1.1.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
13
+ dj_jwt_auth-1.1.2.dist-info/top_level.txt,sha256=58O7TdK-yECZcbmPc52KNlBFpjIUlENuZubCxaSOxus,17
14
+ dj_jwt_auth-1.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.0)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
django_jwt/middleware.py CHANGED
@@ -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