Skip to content

Commit

Permalink
Merge pull request #207 from t16n/chore/switch-to-PyJWT
Browse files Browse the repository at this point in the history
chore: switch from jose to pyjwt
  • Loading branch information
wagnerdelima authored Apr 18, 2024
2 parents 7da6d67 + 0a3e23a commit 1bcb4a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drf_social_oauth2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '''
Expand Down
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1bcb4a7

Please sign in to comment.