请求 weapp/authorizations 接口 JWT 报错了?
报错信息:
"message": "Type error: Argument 2 passed to Lcobucci\\JWT\\Signer\\Hmac::createHash() must be an instance of Lcobucci\\JWT\\Signer\\Key, null given, called in /home/vagrant/code/larabbs/vendor/lcobucci/jwt/src/Signer/BaseSigner.php on line 34",
"status_code": 500,
报错位置:
教程的示例项目 larabbs , api/AuthorizationsController/weappStore
```$token = Auth::guard('api')->fromUser($user);//TODO 这行报错 .... ```
推荐文章: