@websanova/vue-auth
Advanced tools
Comparing version 2.11.1-beta to 2.12.1-beta
@@ -101,3 +101,3 @@ import App from './components/App.vue'; | ||
http: require('../../drivers/http/vue-resource.1.x.js'), | ||
// http: require(f'../../drivers/http/axios.1.x.js'), | ||
// http: require('../../drivers/http/axios.1.x.js'), | ||
router: require('../../drivers/router/vue-router.2.x.js'), | ||
@@ -104,0 +104,0 @@ rolesVar: 'role', |
@@ -16,2 +16,3 @@ module.exports = { | ||
}, function (error) { | ||
req.call(_this, error.request); | ||
return Promise.reject(error); | ||
@@ -26,2 +27,3 @@ }) | ||
}, function (error) { | ||
res.call(_this, error.response); | ||
return Promise.reject(error); | ||
@@ -34,3 +36,3 @@ }) | ||
if (res.status === 401) { | ||
this.logout(); | ||
this.options.logoutProcess.call(this, res, {redirect: this.options.authRedirect}); | ||
} | ||
@@ -37,0 +39,0 @@ }, |
@@ -17,3 +17,3 @@ { | ||
"version": "2.11.1-beta", | ||
"version": "2.12.1-beta", | ||
@@ -52,3 +52,3 @@ "repository": { | ||
"@websanova/vue-auth": "2.11.1-beta", | ||
"@websanova/vue-auth": "2.12.1-beta", | ||
"axios": "^0.16.1", | ||
@@ -55,0 +55,0 @@ "vue-axios": "^2.0.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
384118
2786
4771