Skip to content

Commit

Permalink
more dependabot updates
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Sep 19, 2022
1 parent 5a24b8f commit b5e989d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion osf/utils/tokens/__init__.py
Expand Up @@ -90,7 +90,7 @@ def encode(payload):
payload,
settings.JWT_SECRET,
algorithm=settings.JWT_ALGORITHM
).decode()
)


def decode(encoded_token):
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Expand Up @@ -58,8 +58,8 @@ django-cors-headers==3.10.1
djangorestframework-bulk==0.2.1
hashids==1.2.0
pyjwt==2.4.0
django-celery-beat==4.2.3 # BSD 3 Clause
django-celery-results==2.4.0
django-celery-beat==1.1.1 # BSD 3 Clause
django-celery-results==1.0.1
pyjwe==1.0.0
# Required by pyjwe and ndg-httpsclient
# Building wheel for cryptography >= 3.4.0 requires a Rust version incompatible with Docker base image.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tokens.py
Expand Up @@ -33,7 +33,7 @@ def setUp(self, *args, **kwargs):
self.encoded_token = jwt.encode(
self.payload,
self.secret,
algorithm=settings.JWT_ALGORITHM).decode()
algorithm=settings.JWT_ALGORITHM)

def test_encode(self):
assert_equal(encode(self.payload), self.encoded_token)
Expand Down

0 comments on commit b5e989d

Please sign in to comment.