forked from flavors/django-graphql-jwt
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
.timestamp() returns POSIX timestamp as a float, so this causes an error because refresh_expires_in expects an int.
strawberry-django-jwt/strawberry_django_jwt/utils.py
Lines 255 to 257 in 54ad4b0
| token_object.refresh_expires_in = ( | |
| refresh_token.created.timestamp() + jwt_settings.JWT_REFRESH_EXPIRATION_DELTA.total_seconds() - int(datetime.now().timestamp()) | |
| ) |
Metadata
Metadata
Assignees
Labels
No labels