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

Commit 6de2b06

Browse files
committed
Don't require the 'token' key to be in the response generated by jwt_response_payload_handler, allows more customized responses
1 parent 0154e71 commit 6de2b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework_jwt/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def post(self, request, *args, **kwargs):
6363
expiration = (datetime.utcnow() +
6464
api_settings.JWT_EXPIRATION_DELTA)
6565
response.set_cookie(api_settings.JWT_AUTH_COOKIE,
66-
response.data['token'],
66+
token,
6767
expires=expiration,
6868
httponly=True)
6969
return response

0 commit comments

Comments
 (0)