{"action":"created","issue":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/330","repository_url":"https://api.github.com/repos/websanova/vue-auth","labels_url":"https://api.github.com/repos/websanova/vue-auth/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/websanova/vue-auth/issues/330/comments","events_url":"https://api.github.com/repos/websanova/vue-auth/issues/330/events","html_url":"https://github.com/websanova/vue-auth/issues/330","id":302426881,"node_id":"MDU6SXNzdWUzMDI0MjY4ODE=","number":330,"title":"token is not set","user":{"login":"Rockatweb","id":2091906,"node_id":"MDQ6VXNlcjIwOTE5MDY=","avatar_url":"https://avatars0.githubusercontent.com/u/2091906?v=4","gravatar_id":"","url":"https://api.github.com/users/Rockatweb","html_url":"https://github.com/Rockatweb","followers_url":"https://api.github.com/users/Rockatweb/followers","following_url":"https://api.github.com/users/Rockatweb/following{/other_user}","gists_url":"https://api.github.com/users/Rockatweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Rockatweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rockatweb/subscriptions","organizations_url":"https://api.github.com/users/Rockatweb/orgs","repos_url":"https://api.github.com/users/Rockatweb/repos","events_url":"https://api.github.com/users/Rockatweb/events{/privacy}","received_events_url":"https://api.github.com/users/Rockatweb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-05T19:19:30Z","updated_at":"2018-06-07T13:36:26Z","closed_at":"2018-03-06T07:12:36Z","author_association":"NONE","body":"Hi, i have the problem, that the login request does not set the token that it receives from the APIs Authorization Header.\r\n\r\nSo the request response from the api is this:\r\n\r\n![bildschirmfoto 2018-03-05 um 20 08 58](https://user-images.githubusercontent.com/2091906/36994483-915ee262-20b1-11e8-8132-057a446d97ab.png)\r\n\r\nAnd i put a console.log in the bearer.js but as you can see there is no Authorization Header. What am i doing wrong? oO\r\n\r\n![bildschirmfoto 2018-03-05 um 20 09 18](https://user-images.githubusercontent.com/2091906/36994535-b37f5cf0-20b1-11e8-9fd0-395b6a601685.png)\r\n\r\n\r\nThe Login Code\r\n```\r\n<template>\r\n\r\n    <div id=\"overlayBox\">\r\n\r\n        <div id=\"overlay\">\r\n            <div class=\"topBox\">\r\n                <img src=\"../../assets/images/logo_white.svg\" class=\"logo\" />\r\n            </div>\r\n            <div id=\"adminLogin\">\r\n\r\n                <form v-on:submit.prevent=\"doLogin()\" method=\"post\">\r\n\r\n                    <label for=\"login\">Name</label>\r\n                    <input type=\"text\" name=\"name\" v-model=\"login.name\" id=\"login\" />\r\n\r\n                    <label for=\"password\">Passwort</label>\r\n                    <input type=\"password\" name=\"password\" v-model=\"login.password\" id=\"password\" />\r\n\r\n                    <div v-if=\"error !== ''\">\r\n                        {{error}}\r\n                    </div>\r\n\r\n                    {{$auth.check()}}\r\n\r\n                    <input type=\"submit\" value=\"Einloggen\" />\r\n                </form>\r\n\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n</template>\r\n\r\n<script>\r\n    let qs = require('qs');\r\n\r\n    export default {\r\n        data() {\r\n            return {\r\n                login: {\r\n                    name: '',\r\n                    password: ''\r\n                },\r\n                error: ''\r\n            }\r\n        },\r\n        methods: {\r\n            doLogin() {\r\n                this.$auth.login({\r\n                    url: process.env.API_URL + 'data/login',\r\n                    data: qs.stringify(this.login),\r\n                    method: 'post',\r\n                    success: (response) => {\r\n                        console.log('ok', this.$auth);\r\n                    },\r\n                    error: (reject) => {\r\n                        this.error = 'Login fehlerhaft'\r\n                    },\r\n                    redirect: '/admin',\r\n                    fetchUser: false\r\n                });\r\n            }\r\n        }\r\n    }\r\n\r\n</script>\r\n```\r\n\r\nand the app.js\r\n```...\r\n\r\nVue.router = router;\r\n\r\n\r\nVue.use(VueLocalStorage);\r\n\r\nVue.config.productionTip = false;\r\n\r\nVue.use(VueAxios, axios);\r\n\r\n\r\nVue.axios.defaults.baseURL = process.env.API_URL;\r\nVue.axios.defaults.headers.common['Accept'] = 'application/json';\r\nVue.axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8';\r\nVue.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\r\n\r\n\r\nVue.use(require('@websanova/vue-auth'), {\r\n    auth: require('@websanova/vue-auth/drivers/auth/bearer.js'),\r\n    http: require('@websanova/vue-auth/drivers/http/axios.1.x.js'),\r\n    router: require('@websanova/vue-auth/drivers/router/vue-router.2.x.js'),\r\n    authRedirect: {\r\n        path: '/admin-login'\r\n    },\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/websanova/vue-auth/issues/comments/395422636","html_url":"https://github.com/websanova/vue-auth/issues/330#issuecomment-395422636","issue_url":"https://api.github.com/repos/websanova/vue-auth/issues/330","id":395422636,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQyMjYzNg==","user":{"login":"meliborn","id":735194,"node_id":"MDQ6VXNlcjczNTE5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/735194?v=4","gravatar_id":"","url":"https://api.github.com/users/meliborn","html_url":"https://github.com/meliborn","followers_url":"https://api.github.com/users/meliborn/followers","following_url":"https://api.github.com/users/meliborn/following{/other_user}","gists_url":"https://api.github.com/users/meliborn/gists{/gist_id}","starred_url":"https://api.github.com/users/meliborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meliborn/subscriptions","organizations_url":"https://api.github.com/users/meliborn/orgs","repos_url":"https://api.github.com/users/meliborn/repos","events_url":"https://api.github.com/users/meliborn/events{/privacy}","received_events_url":"https://api.github.com/users/meliborn/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T13:36:26Z","updated_at":"2018-06-07T13:36:26Z","author_association":"NONE","body":"Have the same issue. In devise driver `response` method, `res` variable comes only with 2 headers.\r\n![monosnap 2018-06-07 16-33-21](https://user-images.githubusercontent.com/735194/41102980-c13600de-6a70-11e8-89d7-786cb5946591.png)\r\n\r\nBut server response looks like:\r\n![monosnap 2018-06-07 16-35-52](https://user-images.githubusercontent.com/735194/41103045-e408e2d4-6a70-11e8-8a77-a7c08d04e476.png)\r\nWhere're other headers?"}}
{"actor":{"display_login":"meliborn"}}