dingo+jwt 使用 api.auth 一直报"message": "Unable to authenticate with invalid token.", ?
dingo+jwt都安装配置好了,也能正常生成token,也能正常刷新token,但在提交token比如获取用户信息,就一直报
"message": "Unable to authenticate with invalid token.",
就是加上$api->group('middleware'=>'api.auth',....)时一直报这个错误,如果不加上不报错通过Auth提供的user方法能取用户信息,但通过$this->auth->user()就取不到了。不知道哪位大佬知道是啥情况
推荐文章: