laravel报错Argument 3 passed to Lcobucci\JWT\Signer\Hmac::doVerify()…

exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "E:\card_backend\vendor\lcobucci\jwt\src\Signer\Hmac.php"
line: 29
message: "Argument 3 passed to Lcobucci\JWT\Signer\Hmac::doVerify() must be an instance of Lcobucci\JWT\Signer\Key, null given, called in E:\card_backend\vendor\lcobucci\jwt\src\Signer\BaseSigner.php on line 44"

解决方法

php artisan jwt:secret
php artisan config:clear
php artisan config:cache

发表评论