You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python 3.12 deprecated the use of .utcnow(), and therefore there are deprecation warnings when creating JWTs:
<...?/lib/python3.12/site-packages/jose/jwt.py:311: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
Activity
Jamim commentedon Dec 27, 2023
For the sake of transparency, this issue affects
FastAPI's test suite:leandrodesouzadev commentedon Jan 17, 2025
I've opened a PR #366 for this fix, let me know if this is ok or needs any changes.
Many thanks for the work done here.
Edit: actually, I've just noticed that there were an open PR (#335) already for this, my bad.