This repository was archived by the owner on May 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
jwt_response_payload_handler = api_settings .JWT_RESPONSE_PAYLOAD_HANDLER
15
15
16
16
17
- class JWTAPIView (APIView ):
17
+ class JSONWebTokenAPIView (APIView ):
18
18
"""
19
19
Base API View that various JWT interactions inherit from.
20
20
"""
@@ -37,7 +37,7 @@ def post(self, request):
37
37
return Response (serializer .errors , status = status .HTTP_400_BAD_REQUEST )
38
38
39
39
40
- class ObtainJSONWebToken (JWTAPIView ):
40
+ class ObtainJSONWebToken (JSONWebTokenAPIView ):
41
41
"""
42
42
API View that receives a POST with a user's username and password.
43
43
@@ -46,15 +46,15 @@ class ObtainJSONWebToken(JWTAPIView):
46
46
serializer_class = JSONWebTokenSerializer
47
47
48
48
49
- class VerifyJSONWebToken (JWTAPIView ):
49
+ class VerifyJSONWebToken (JSONWebTokenAPIView ):
50
50
"""
51
51
API View that checks the veracity of a token, returning the token if it
52
52
is valid.
53
53
"""
54
54
serializer_class = VerifyJSONWebTokenSerializer
55
55
56
56
57
- class RefreshJSONWebToken (JWTAPIView ):
57
+ class RefreshJSONWebToken (JSONWebTokenAPIView ):
58
58
"""
59
59
API View that returns a refreshed token (with new expiration) based on
60
60
existing token
You can’t perform that action at this time.
0 commit comments