mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 03:04:27 +08:00
Upgrade to pyjwt==2.0.0
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user