就是登录成功后不能返回token报错如下 本地测试没事 线上一直报这个错误
网上说执行一下php artisan jwt:secret
可是试了还是不行 有人知道这是怎么回事吗?
"message": "Argument 2 passed to Lcobucci\\JWT\\Signer\\Hmac::createHash()
must be an instance of Lcobucci\\JWT\\Signer\\Key, null given,
called in /var/www/html/road/vendor/lcobucci/jwt/src/Signer/BaseSigner.php on line 34",
你线上
.env
文件JWT_SECRET
有值吗