JWTRefreshTokenBundle
JWTRefreshTokenBundle copied to clipboard
Problem with unix_time
I use unix_time format for handle my objects of DateTime and i get this error when try to update token.
Can you expand on what you mean regarding the unix_time format? DateTime
objects should support comparison with the >=
type operators.
@dmorfav I suspect you're generating a unix timestamp and saving it as an integer in $this->valid
, while that should be a DateTime
object.
You can use DateTime::setTimestamp()
and DateTime::getTimestamp()
to convert back-and-forth if you want to keep using integer timestamp values in other places.