Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update datetime.utcnow() to use UTC timezone-aware object
datetime.utcnow() is being deprecated in Python 3.12 as it returns a naive datetime object without timezone information. Replace with datetime.now(UTC) to use an explicit timezone-aware object, preventing potential timezone ambiguity issues. In access_token.py, updated the token expiration calculation to use the recommended timezone-aware approach.
- Loading branch information