Skip to content

Int cannot represent non-integer value #345

@jaydensmith

Description

@jaydensmith

.timestamp() returns POSIX timestamp as a float, so this causes an error because refresh_expires_in expects an int.

token_object.refresh_expires_in = (
refresh_token.created.timestamp() + jwt_settings.JWT_REFRESH_EXPIRATION_DELTA.total_seconds() - int(datetime.now().timestamp())
)

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