Passport - “Unauthenticated.” - Laravel 5.3
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I hope someone could explain why I'm unauthenticated when already has performed a successfull Oauth 2 authentication process. I've set up the Passport package like in Laravel's documentation and I successfully get authenticated, receives a token value and so on. But, when I try to do a get request on, let say, /api/user , I get a Unauthenticated error as a response. I use the token value as a header with key name Authorization , just as described in the docs. Route::get('/user', function (Request $request) { return $request->user(); })-