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

作者: caibaotimes

出处:https://www.cnblogs.com/caibaotimes/p/14198491.html

版权:本站使用「CC BY 4.0」创作共享协议,未经作者同意,请勿转载;若经同意转载,请在文章明显位置注明作者和出处。

原文地址:https://www.cnblogs.com/wntd/p/14548053.html