Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit f0a0a89

Browse files
committed
Renamed JWTAPIView to JSONWebTokenAPIView
1 parent 3b5eec9 commit f0a0a89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rest_framework_jwt/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
jwt_response_payload_handler = api_settings.JWT_RESPONSE_PAYLOAD_HANDLER
1515

1616

17-
class JWTAPIView(APIView):
17+
class JSONWebTokenAPIView(APIView):
1818
"""
1919
Base API View that various JWT interactions inherit from.
2020
"""
@@ -37,7 +37,7 @@ def post(self, request):
3737
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
3838

3939

40-
class ObtainJSONWebToken(JWTAPIView):
40+
class ObtainJSONWebToken(JSONWebTokenAPIView):
4141
"""
4242
API View that receives a POST with a user's username and password.
4343
@@ -46,15 +46,15 @@ class ObtainJSONWebToken(JWTAPIView):
4646
serializer_class = JSONWebTokenSerializer
4747

4848

49-
class VerifyJSONWebToken(JWTAPIView):
49+
class VerifyJSONWebToken(JSONWebTokenAPIView):
5050
"""
5151
API View that checks the veracity of a token, returning the token if it
5252
is valid.
5353
"""
5454
serializer_class = VerifyJSONWebTokenSerializer
5555

5656

57-
class RefreshJSONWebToken(JWTAPIView):
57+
class RefreshJSONWebToken(JSONWebTokenAPIView):
5858
"""
5959
API View that returns a refreshed token (with new expiration) based on
6060
existing token

0 commit comments

Comments
 (0)