{"action":"created","issue":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/108","repository_url":"https://api.github.com/repos/websanova/vue-auth","labels_url":"https://api.github.com/repos/websanova/vue-auth/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/websanova/vue-auth/issues/108/comments","events_url":"https://api.github.com/repos/websanova/vue-auth/issues/108/events","html_url":"https://github.com/websanova/vue-auth/issues/108","id":211410185,"number":108,"title":"fetchUser option & parameter both ignored","user":{"login":"jkubecki","id":1030211,"avatar_url":"https://avatars1.githubusercontent.com/u/1030211?v=3","gravatar_id":"","url":"https://api.github.com/users/jkubecki","html_url":"https://github.com/jkubecki","followers_url":"https://api.github.com/users/jkubecki/followers","following_url":"https://api.github.com/users/jkubecki/following{/other_user}","gists_url":"https://api.github.com/users/jkubecki/gists{/gist_id}","starred_url":"https://api.github.com/users/jkubecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkubecki/subscriptions","organizations_url":"https://api.github.com/users/jkubecki/orgs","repos_url":"https://api.github.com/users/jkubecki/repos","events_url":"https://api.github.com/users/jkubecki/events{/privacy}","received_events_url":"https://api.github.com/users/jkubecki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-03-02T14:41:04Z","updated_at":"2017-03-03T13:26:44Z","closed_at":"2017-03-03T09:58:14Z","body":"I'm having an issue with the `loginData.fetchUser` option being ignored, as well as the `fetchUser` parameter passed to the `login` method.\r\n\r\nI've reproduced the behavior in a small app, and posted on GitHub here: https://github.com/jkubecki/vue-auth-from-cli\r\n\r\nWhen building the small app, I...\r\n\r\n1. Created the new app using `vue-cli`. I used the `webpack` template, and took all defaults, _including_ vue-router, but _excluded_ eslint and tests, for simplicity.\r\n1. Added in `vue-resource` and `vue-auth`, using `npm install --save`\r\n1. Added the code to `main.js` to support both. *Note:* I'm using the websanova API endpoint, like the demo apps.\r\n1. Added a simple login page (Login.vue), using the code from the 2.x demo app.\r\n1. Tried adding both the `fetchUser` option in `main.js`, as well as the `fetchUser` parameter in `Login.vue`.\r\n1. Upon logging in, if you watch network activity in Chrome Dev Tools, you'll still see a request to the *user* endpoint.\r\n\r\n(I found the issue when attempting to incorporate vue-auth into my _own_ app, which does not as yet have the user endpoint, so it was throwing a 404 in the console upon login, even with the options set.)\r\n\r\nAny ideas on why this may be occurring? Is this perhaps related to #95 ?"},"comment":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/comments/283952132","html_url":"https://github.com/websanova/vue-auth/issues/108#issuecomment-283952132","issue_url":"https://api.github.com/repos/websanova/vue-auth/issues/108","id":283952132,"user":{"login":"hurradieweltgehtunter","id":16665512,"avatar_url":"https://avatars0.githubusercontent.com/u/16665512?v=3","gravatar_id":"","url":"https://api.github.com/users/hurradieweltgehtunter","html_url":"https://github.com/hurradieweltgehtunter","followers_url":"https://api.github.com/users/hurradieweltgehtunter/followers","following_url":"https://api.github.com/users/hurradieweltgehtunter/following{/other_user}","gists_url":"https://api.github.com/users/hurradieweltgehtunter/gists{/gist_id}","starred_url":"https://api.github.com/users/hurradieweltgehtunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurradieweltgehtunter/subscriptions","organizations_url":"https://api.github.com/users/hurradieweltgehtunter/orgs","repos_url":"https://api.github.com/users/hurradieweltgehtunter/repos","events_url":"https://api.github.com/users/hurradieweltgehtunter/events{/privacy}","received_events_url":"https://api.github.com/users/hurradieweltgehtunter/received_events","type":"User","site_admin":false},"created_at":"2017-03-03T13:26:44Z","updated_at":"2017-03-03T13:26:44Z","body":"no problem. \r\nbigger question is why the get request to /auth/user becomes OPTIONS.\r\nI think the headers are not set correctly although in index.js:\r\n`axios.defaults.headers.common['Content-Type'] = 'application/x-www-form-urlencoded'`\r\n"}}
{"actor":{"display_login":"hurradieweltgehtunter"}}