SIGN IN SIGN UP

Replace usage of deprecated datetime.utcnow() with datetime.now(UTC) (#360)

* Replace usage of deprecated datetime.utcnow() with datetime.now(UTC)

* fix: reorder imports for consistency in jwt.py and test_jwt.py

* fix: correct usage of datetime.now(UTC) in JWT validation functions

* fix: update datetime usage for compatibility with Python versions

Refactor datetime imports and usage to ensure compatibility with Python 3.12 and 3.13. Replace deprecated datetime.utcnow() with datetime.now(UTC) and handle ImportError for older versions.

* fix: update datetime usage for compatibility with Python 3.12 and 3.13

- Replace deprecated datetime.utcnow() with datetime.now(UTC) for better compatibility.
- Adjusted import statements and usage in jwt.py and test_jwt.py for consistency.
H
Hrithik Dhakrey committed
0360fa354de83e576399671e02e03f868c5f47be
Parent: 12f30c8
Committed by GitHub <noreply@github.com> on 2/13/2025, 9:23:35 PM