Skip to content

utcnow() deprecation #66

@zupo

Description

@zupo

This line

payload["iat"] = iat = datetime.datetime.utcnow()

causes a deprecation warning in Python 3.12 and newer: 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions