There was an error while loading. Please reload this page.
1 parent 4021e0b commit 3637344Copy full SHA for 3637344
rest_framework_jwt/authentication.py
@@ -1,8 +1,8 @@
1
import jwt
2
3
from django.contrib.auth import get_user_model
4
-from django.utils.encoding import smart_text
5
-from django.utils.translation import ugettext as _
+from django.utils.encoding import smart_str
+from django.utils.translation import gettext as _
6
from rest_framework import exceptions
7
from rest_framework.authentication import (
8
BaseAuthentication, get_authorization_header
@@ -42,7 +42,7 @@ def authenticate(self, request):
42
43
user = self.authenticate_credentials(payload)
44
45
- return (user, payload)
+ return (user, jwt_value)
46
47
def authenticate_credentials(self, payload):
48
"""
0 commit comments