{"action":"created","issue":{"url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/28","repository_url":"https://api.github.com/repos/dgrubelic/vue-authenticate","labels_url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/28/comments","events_url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/28/events","html_url":"https://github.com/dgrubelic/vue-authenticate/issues/28","id":234827096,"number":28,"title":"Unable to get it working with axios","user":{"login":"philippeluickx","id":836866,"avatar_url":"https://avatars0.githubusercontent.com/u/836866?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeluickx","html_url":"https://github.com/philippeluickx","followers_url":"https://api.github.com/users/philippeluickx/followers","following_url":"https://api.github.com/users/philippeluickx/following{/other_user}","gists_url":"https://api.github.com/users/philippeluickx/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeluickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeluickx/subscriptions","organizations_url":"https://api.github.com/users/philippeluickx/orgs","repos_url":"https://api.github.com/users/philippeluickx/repos","events_url":"https://api.github.com/users/philippeluickx/events{/privacy}","received_events_url":"https://api.github.com/users/philippeluickx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-09T13:29:31Z","updated_at":"2017-06-09T21:01:23Z","closed_at":null,"body":"I followed the instructions for adding axios, but can not get it to work.\r\nThe problem is that this.$http is undefined. Vue is pretty new to me, but it might be that \"this\" is the problem?\r\nWhen I replace the example interceptor code this.$http to Vue.axios, the interceptor does not throw errors anymore, but the lib does (again with this.$http being undefined).\r\n\r\nMy layout is just like with vue-authenticate-site. Any help is appreciated.\r\n\r\nhttps://gist.github.com/philippeluickx/1632139a90294aced85830dec3e915b3\r\n\r\nLooking at https://github.com/imcvampire/vue-axios#usage\r\n\r\n> This wrapper bind axios to Vue or this if you're using **single file component**.\r\n\r\nIs there any way to hook this.$http globally?\r\n"},"comment":{"url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/comments/307498804","html_url":"https://github.com/dgrubelic/vue-authenticate/issues/28#issuecomment-307498804","issue_url":"https://api.github.com/repos/dgrubelic/vue-authenticate/issues/28","id":307498804,"user":{"login":"philippeluickx","id":836866,"avatar_url":"https://avatars0.githubusercontent.com/u/836866?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeluickx","html_url":"https://github.com/philippeluickx","followers_url":"https://api.github.com/users/philippeluickx/followers","following_url":"https://api.github.com/users/philippeluickx/following{/other_user}","gists_url":"https://api.github.com/users/philippeluickx/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeluickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeluickx/subscriptions","organizations_url":"https://api.github.com/users/philippeluickx/orgs","repos_url":"https://api.github.com/users/philippeluickx/repos","events_url":"https://api.github.com/users/philippeluickx/events{/privacy}","received_events_url":"https://api.github.com/users/philippeluickx/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T21:01:23Z","updated_at":"2017-06-09T21:01:23Z","body":"this.$http is undefined.\r\n\r\nI get it when using it in the interceptors. When I replace them with axios, the issue is resolved. But then it fails somewhere in the vue-authenticate library where this.$http is used."}}
{"actor":{"display_login":"philippeluickx"}}