jwt-auth Could not create token

"tymon/jwt-auth": "1.0.1" 依赖 lcobucci/jwt 版本过高 出错:

Could not create token: Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead.

解决方案是将lcobucci/jwt依赖项降级到版本3.3.0。
composer remove lcobucci/jwt
composer require lcobucci/jwt 3.3.0

原文地址:https://www.cnblogs.com/caibaotimes/p/14198491.html