Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning from python 3.12 #334

Open
spapanik opened this issue Oct 5, 2023 · 1 comment · May be fixed by #335
Open

Deprecation warning from python 3.12 #334

spapanik opened this issue Oct 5, 2023 · 1 comment · May be fixed by #335

Comments

@spapanik
Copy link

spapanik commented Oct 5, 2023

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).

@Jamim
Copy link

Jamim commented Dec 27, 2023

For the sake of transparency, this issue affects FastAPI's test suite:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants