ArrayString

ArrayString

Who am I?


What I write about


Recent Posts

Type error: Argument 3 passed to Lcobucci\\JWT\\Signer\\Hmac::doVerify() must be an instance of Lcobucci\\JWT\\Signer\\Key, null given

Type error: Argument 3 passed to Lcobucci\\JWT\\Signer\\Hmac::doVerify() must be an instance of Lcobucci\\JWT\\Signer\\Key, null given

报错信息:

Type error: Argument 3 passed to Lcobucci\\JWT\\Signer\\Hmac::doVerify() must be an instance of Lcobucci\\JWT\\Signer\\Key, null given, called in /home/taurus/code/larabbs/vendor/lcobucci/jwt/src/Signer/BaseSigner.php on line 44

问题原因:

在不同的电脑上开发,需要登录的接口报错 解决方法:php artisan jwt:secret 重新生成JWT_SECRET或复制原secret,重新登录。在.env中找不到JWT_SECRET会报此错误