We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454ec2d commit 2ff5196Copy full SHA for 2ff5196
src/fastapi_oauth2/middleware.py
@@ -53,7 +53,7 @@ def jwt_decode(cls, token: str) -> dict:
53
54
@classmethod
55
def jwt_create(cls, token_data: dict) -> str:
56
- expire = datetime.now(UTC) + timedelta(seconds=cls.expires)
+ expire = datetime.now(timezone.utc) + timedelta(seconds=cls.expires)
57
return cls.jwt_encode({**token_data, "exp": expire})
58
59
0 commit comments