dj-jwt-auth 1.1.1__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.1
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
@@ -1,5 +1,5 @@
1
1
  django_jwt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- django_jwt/middleware.py,sha256=2UUYoFNa_BNg_eYFfiFdH3kZggQtBYgFphVNyRLJl4c,1085
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.1.dist-info/METADATA,sha256=d_60LuyJyEvhxEYv-m_HaW_8s2IskANUeZ8sJUcryeo,3171
12
- dj_jwt_auth-1.1.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
13
- dj_jwt_auth-1.1.1.dist-info/top_level.txt,sha256=58O7TdK-yECZcbmPc52KNlBFpjIUlENuZubCxaSOxus,17
14
- dj_jwt_auth-1.1.1.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,,
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_info=True)
35
+ log.error(f"Unexpected error: {exc}")
34
36
  return