We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0154e71 + 6de2b06 commit 9e89201Copy full SHA for 9e89201
rest_framework_jwt/views.py
@@ -63,7 +63,7 @@ def post(self, request, *args, **kwargs):
63
expiration = (datetime.utcnow() +
64
api_settings.JWT_EXPIRATION_DELTA)
65
response.set_cookie(api_settings.JWT_AUTH_COOKIE,
66
- response.data['token'],
+ token,
67
expires=expiration,
68
httponly=True)
69
return response
0 commit comments