@websanova/vue-auth
Advanced tools
Comparing version 2.20.0-beta to 2.20.1-beta
# Change Log | ||
### v2.19.x-beta | ||
### v2.20.x-beta | ||
* Restore auto refresh interval. | ||
* Add support for promises. | ||
### v2.19.x-beta | ||
* Update to handle failed token redirects internally (rather than requiring additional interceptors). | ||
@@ -8,0 +11,0 @@ |
@@ -17,3 +17,3 @@ { | ||
"version": "2.20.0-beta", | ||
"version": "2.20.1-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -217,5 +217,17 @@ var __utils = require('./lib/utils.js'), | ||
function _processInvalidToken(res, transition) { | ||
var auth, | ||
var i, | ||
query, | ||
auth, | ||
redirect = transition.path; | ||
// Make sure we also attach any existing | ||
// query parameters on the path. | ||
if (redirect && transition.query) { | ||
for (i in transition.query) { | ||
query += '&' + transition.query[i]; | ||
} | ||
redirect += '?' + query.substring(1); | ||
} | ||
if (!this.options.http._invalidToken) { | ||
@@ -222,0 +234,0 @@ return; |
767723
147
2465