Skip to content

Commit 31fdd1e

Browse files
committed
Remove .decode("utf-8")
1 parent ad45683 commit 31fdd1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rest_framework_sso/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def encode_jwt_token(payload):
8989
algorithm=api_settings.ENCODE_ALGORITHM,
9090
headers=headers,
9191
json_encoder=DjangoJSONEncoder,
92-
).decode("utf-8")
92+
)
9393

9494

9595
def decode_jwt_token(token):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import find_packages, setup
44

55

6-
INSTALL_REQUIRES = ["djangorestframework", "cryptography", "pem", "PyJWT"]
6+
INSTALL_REQUIRES = ["djangorestframework", "cryptography", "pem", "PyJWT>=2.0"]
77

88

99
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:

0 commit comments

Comments
 (0)