Skip to content

Commit 3637344

Browse files
committed
first commit
1 parent 4021e0b commit 3637344

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rest_framework_jwt/authentication.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import jwt
22

33
from django.contrib.auth import get_user_model
4-
from django.utils.encoding import smart_text
5-
from django.utils.translation import ugettext as _
4+
from django.utils.encoding import smart_str
5+
from django.utils.translation import gettext as _
66
from rest_framework import exceptions
77
from rest_framework.authentication import (
88
BaseAuthentication, get_authorization_header
@@ -42,7 +42,7 @@ def authenticate(self, request):
4242

4343
user = self.authenticate_credentials(payload)
4444

45-
return (user, payload)
45+
return (user, jwt_value)
4646

4747
def authenticate_credentials(self, payload):
4848
"""

0 commit comments

Comments
 (0)