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

Commit 9e89201

Browse files
authored
Merge pull request #323 from brianrower/feature/dontRequireTokenKeyInResponse
Don't require the 'token' key to override jwt_response_payload_handler
2 parents 0154e71 + 6de2b06 commit 9e89201

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)