diff --git a/drf_social_oauth2/__init__.py b/drf_social_oauth2/__init__.py index 7bf2570..6b7edad 100644 --- a/drf_social_oauth2/__init__.py +++ b/drf_social_oauth2/__init__.py @@ -27,7 +27,7 @@ def generate_token(request, length=30, chars=UNICODE_ASCII_CHARACTER_SET): why SystemRandom is used instead of the default random.choice method. """ from django.conf import settings - from jose import jwt + import jwt rand = SystemRandom() secret = getattr(settings, 'SECRET_KEY') diff --git a/pyproject.toml b/pyproject.toml index 40136c4..9b1b6a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ include = '\.pyi?$' skip-string-normalization = true requires = [ - 'python-jose[cryptography]>=3.2.0', + 'PyJWT>=2.8.0', 'python-secrets>=3.9.2', ] exclude = ''' diff --git a/requirements.test.txt b/requirements.test.txt index be183e7..31e9d7e 100644 --- a/requirements.test.txt +++ b/requirements.test.txt @@ -6,5 +6,5 @@ social-auth-app-django>=3.1.0 pytest-mock==3.6.1 coverage==6.2 psycopg2-binary==2.9.3 -python-jose[cryptography]>=3.3.0 model_bakery==1.11.0 +PyJWT==2.8.0 diff --git a/setup.py b/setup.py index 065d7da..67f3f9b 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ 'djangorestframework>=3.10.3', 'django-oauth-toolkit>=0.12.0', 'social-auth-app-django>=3.1.0', - 'python-jose[cryptography]>=3.3.0', + 'PyJWT>=2.8.0' ], include_package_data=True, zip_safe=False,