Upgrade to pyjwt==2.0.0

This commit is contained in:
François Voron
2020-12-24 09:47:34 +01:00
parent 7e2ca9551e
commit 92c523c379
4 changed files with 34 additions and 34 deletions

View File

@ -11,4 +11,4 @@ def generate_jwt(
payload = data.copy()
expire = datetime.utcnow() + timedelta(seconds=lifetime_seconds)
payload["exp"] = expire
return jwt.encode(payload, secret, algorithm=algorithm).decode("utf-8")
return jwt.encode(payload, secret, algorithm=algorithm)