yuanzhihai / webman-jwt-auth

Lcobucci/jwt JSON Web Token (JWT) for webman plugin
10 stars 3 forks source link

unserialize(): Passing null to parameter #1 ($data) of type string is deprecated #5

Closed iYting closed 1 year ago

iYting commented 2 years ago

在对着文档测试时 发现以下问题:

JwtAuth::verify($token); 报错 unserialize(): Passing null to parameter #1 ($data) of type string is deprecated 查看代码发现报错是在BlackList.php文件中hasTokenBlack方法里 image Redis::get($cacheKey) 返回为null 导致unserialize方法报错 我是对着文档一步一步写的 这个报错是否是插件bug?

linjiaen commented 1 year ago

遇到同样的问题

yuanzhihai commented 1 year ago

升级2.0.13 试试