{"action":"closed","issue":{"url":"https://api.github.com/repos/dingo/api/issues/852","repository_url":"https://api.github.com/repos/dingo/api","labels_url":"https://api.github.com/repos/dingo/api/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/852/comments","events_url":"https://api.github.com/repos/dingo/api/issues/852/events","html_url":"https://github.com/dingo/api/issues/852","id":133931723,"number":852,"title":"Using OAuth2 Middleware with Laravel Sessions","user":{"login":"lvandyk","id":6745257,"avatar_url":"https://avatars.githubusercontent.com/u/6745257?v=3","gravatar_id":"","url":"https://api.github.com/users/lvandyk","html_url":"https://github.com/lvandyk","followers_url":"https://api.github.com/users/lvandyk/followers","following_url":"https://api.github.com/users/lvandyk/following{/other_user}","gists_url":"https://api.github.com/users/lvandyk/gists{/gist_id}","starred_url":"https://api.github.com/users/lvandyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvandyk/subscriptions","organizations_url":"https://api.github.com/users/lvandyk/orgs","repos_url":"https://api.github.com/users/lvandyk/repos","events_url":"https://api.github.com/users/lvandyk/events{/privacy}","received_events_url":"https://api.github.com/users/lvandyk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-16T09:46:43Z","updated_at":"2016-03-08T03:07:23Z","closed_at":"2016-03-08T03:07:23Z","body":"I have a route group using api.auth middleware working nicely with OAuth2. How do I add the 'auth' middleware so that if the user is actually logged in and has a session, they can also reach that route and thus the $this->auth->user() is populated?\r\n\r\nE.g. User accesses route via mobile app using token vs user accessing route via browser when logged in (javascript ajax call)."}}