{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/passport/issues/87","repository_url":"https://api.github.com/repos/laravel/passport","labels_url":"https://api.github.com/repos/laravel/passport/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/laravel/passport/issues/87/comments","events_url":"https://api.github.com/repos/laravel/passport/issues/87/events","html_url":"https://github.com/laravel/passport/issues/87","id":177338780,"number":87,"title":"Get user alway return null","user":{"login":"minhcanhdn","id":136077,"avatar_url":"https://avatars.githubusercontent.com/u/136077?v=3","gravatar_id":"","url":"https://api.github.com/users/minhcanhdn","html_url":"https://github.com/minhcanhdn","followers_url":"https://api.github.com/users/minhcanhdn/followers","following_url":"https://api.github.com/users/minhcanhdn/following{/other_user}","gists_url":"https://api.github.com/users/minhcanhdn/gists{/gist_id}","starred_url":"https://api.github.com/users/minhcanhdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhcanhdn/subscriptions","organizations_url":"https://api.github.com/users/minhcanhdn/orgs","repos_url":"https://api.github.com/users/minhcanhdn/repos","events_url":"https://api.github.com/users/minhcanhdn/events{/privacy}","received_events_url":"https://api.github.com/users/minhcanhdn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T03:34:54Z","updated_at":"2016-09-16T03:34:54Z","closed_at":null,"body":"I got access_token and send request to get user but alway return\r\n```\r\n{\r\n\"error\": \"Unauthenticated.\"\r\n}\r\n```\r\n\r\nI readed on the internet and some people told me change api.php like that\r\n```\r\nRoute::get('/user', function (Request $request) {\r\n    return $request->user();\r\n})->middleware('auth:api');\r\n```\r\n\r\nto \r\n```\r\nRoute::get('/user', function (Request $request) {\r\n    return $request->user();\r\n});\r\n```\r\n\r\nThen it does not display error again but return null value. I can't get user."}}
{"actor":{"display_login":"minhcanhdn"}}