vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

Logout wrong url

Open tolawho opened this issue 6 years ago • 0 comments

I custom my app with setting `Vue.use(VueAuthenticate, { baseUrl: config.api, // http://api.local/api/ tokenName: 'token', tokenPrefix: '', loginUrl: 'login', registerUrl: 'register', logoutUrl: 'logout', storageNamespace: '', bindRequestInterceptor: function () { this.$http.interceptors.request.use((config) => { if (this.isAuthenticated()) { config.headers['Authorization'] = [ this.options.tokenType, this.getToken() ].join(' ') } else { delete config.headers['Authorization'] } return config }) },

bindResponseInterceptor: function () { this.$http.interceptors.response.use((response) => { this.setToken(response) return response }) } })`

When I call this.$auth.login(...), this.$auth.register(...) the url is http://api.local/api/login and http://api.local/api/register. But with logout my url is http://localhost:8000/logout Please fix this

tolawho avatar Aug 27 '18 10:08 tolawho