pyjwt from 1.7.1 to 2.0.1

This commit is contained in:
sayali 2021-02-10 18:09:20 -08:00
parent c71f3bfb5c
commit 533985ca35
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ def create_token(user, aid=None, ttl=None):
else:
payload["exp"] = ttl
token = jwt.encode(payload, current_app.config["LEMUR_TOKEN_SECRET"])
return token.decode("unicode_escape")
return token
def login_required(f):

View File

@ -171,7 +171,7 @@ pycryptodomex==3.9.7
# via pyjks
pyjks==20.0.0
# via -r requirements.in
pyjwt==1.7.1
pyjwt==2.0.1
# via -r requirements.in
pynacl==1.3.0
# via paramiko