python-jose
python-jose copied to clipboard
Replace usage of deprecated datetime.utcnow() with datetime.now(UTC)
Python 3.12 deprecates datetime.utcnow() in favor of using timezone-aware objects like datetime.now(UTC). This commit updates the codebase accordingly to align with the latest recommendations.
https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow