Open ideallical opened 7 years ago
Currently it's not possible to use a custom exception handler of DRF without overriding the JSONWebTokenAPIView.
It's in line 55 of rest_framework_jwt/views.py where I'd like to change:
if serializer.is_valid():
Into:
if serializer.is_valid(raise_exception=True):
My suggest fix would be to make this a setting like so:
if serializer.is_valid(raise_exception=api_settings.JWT_RAISE_EXCEPTION):
Where JWT_RAISE_EXCEPTION defaults to True for backwards compatibility.
Currently it's not possible to use a custom exception handler of DRF without overriding the JSONWebTokenAPIView.
It's in line 55 of rest_framework_jwt/views.py where I'd like to change:
Into:
My suggest fix would be to make this a setting like so:
Where JWT_RAISE_EXCEPTION defaults to True for backwards compatibility.