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

138次阅读
没有评论

具体原因:lcobucci/jwt版本3.4及更高版本,

可能遇到的场景

tymon/jwt-auth版本小于1.0.2的会出现这个问题,因为依赖lcobucci/jwt,但却又不锁定版本,导致会自动升级到lcobucci/jwt3.4及以上版本,将tymon/jwt-auth升级到1.0.2即可,具体实现就是把lcobucci/jwt降级到3.4以下,看这里:Releases · tymondesigns/jwt-auth

临时解决:https://learnku.com/laravel/t/51873

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-12-15发表,共计341字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)