From f6ea0ffef0affb6db6a3e5e0f59c14f0183ee79b Mon Sep 17 00:00:00 2001 From: Rob Date: Sat, 12 Mar 2022 12:51:31 -0500 Subject: [PATCH] Bump version. --- dist/drivers/auth/basic.common.js | 2 +- dist/drivers/auth/basic.esm.js | 2 +- dist/drivers/auth/basic.js | 2 +- dist/drivers/auth/basic.min.js | 2 +- dist/drivers/auth/bearer.common.js | 2 +- dist/drivers/auth/bearer.esm.js | 2 +- dist/drivers/auth/bearer.js | 2 +- dist/drivers/auth/bearer.min.js | 2 +- dist/drivers/auth/devise.common.js | 2 +- dist/drivers/auth/devise.esm.js | 2 +- dist/drivers/auth/devise.js | 2 +- dist/drivers/auth/devise.min.js | 2 +- dist/drivers/http/axios.1.x.common.js | 2 +- dist/drivers/http/axios.1.x.esm.js | 2 +- dist/drivers/http/axios.1.x.js | 2 +- dist/drivers/http/axios.1.x.min.js | 2 +- dist/drivers/http/frisbee.1.x.common.js | 2 +- dist/drivers/http/frisbee.1.x.esm.js | 2 +- dist/drivers/http/frisbee.1.x.js | 2 +- dist/drivers/http/frisbee.1.x.min.js | 2 +- dist/drivers/http/vue-resource.1.x.common.js | 2 +- dist/drivers/http/vue-resource.1.x.esm.js | 2 +- dist/drivers/http/vue-resource.1.x.js | 2 +- dist/drivers/http/vue-resource.1.x.min.js | 2 +- dist/drivers/oauth2/facebook.common.js | 2 +- dist/drivers/oauth2/facebook.esm.js | 2 +- dist/drivers/oauth2/facebook.js | 2 +- dist/drivers/oauth2/facebook.min.js | 2 +- dist/drivers/oauth2/google.common.js | 2 +- dist/drivers/oauth2/google.esm.js | 2 +- dist/drivers/oauth2/google.js | 2 +- dist/drivers/oauth2/google.min.js | 2 +- dist/drivers/router/vue-router.2.x.common.js | 2 +- dist/drivers/router/vue-router.2.x.esm.js | 2 +- dist/drivers/router/vue-router.2.x.js | 2 +- dist/drivers/router/vue-router.2.x.min.js | 2 +- dist/v2/vue-auth.common.js | 4 +++- dist/v2/vue-auth.esm.js | 4 +++- dist/v2/vue-auth.js | 4 +++- dist/v2/vue-auth.min.js | 4 ++-- dist/v3/vue-auth.common.js | 4 +++- dist/v3/vue-auth.esm.js | 4 +++- dist/v3/vue-auth.js | 4 +++- dist/v3/vue-auth.min.js | 4 ++-- package.json | 2 +- 45 files changed, 59 insertions(+), 47 deletions(-) diff --git a/dist/drivers/auth/basic.common.js b/dist/drivers/auth/basic.common.js index c4676c8..8dbeecb 100644 --- a/dist/drivers/auth/basic.common.js +++ b/dist/drivers/auth/basic.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/basic.esm.js b/dist/drivers/auth/basic.esm.js index 3791f8a..95a071f 100644 --- a/dist/drivers/auth/basic.esm.js +++ b/dist/drivers/auth/basic.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/basic.js b/dist/drivers/auth/basic.js index d183a12..177bac6 100644 --- a/dist/drivers/auth/basic.js +++ b/dist/drivers/auth/basic.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/basic.min.js b/dist/drivers/auth/basic.min.js index 63dbdcd..26db44c 100644 --- a/dist/drivers/auth/basic.min.js +++ b/dist/drivers/auth/basic.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/bearer.common.js b/dist/drivers/auth/bearer.common.js index 43c0af9..bf24b59 100644 --- a/dist/drivers/auth/bearer.common.js +++ b/dist/drivers/auth/bearer.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/bearer.esm.js b/dist/drivers/auth/bearer.esm.js index f1d1a1e..cb286bf 100644 --- a/dist/drivers/auth/bearer.esm.js +++ b/dist/drivers/auth/bearer.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/bearer.js b/dist/drivers/auth/bearer.js index 314d075..951b711 100644 --- a/dist/drivers/auth/bearer.js +++ b/dist/drivers/auth/bearer.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/bearer.min.js b/dist/drivers/auth/bearer.min.js index c3ec785..e841c59 100644 --- a/dist/drivers/auth/bearer.min.js +++ b/dist/drivers/auth/bearer.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/devise.common.js b/dist/drivers/auth/devise.common.js index 9dcd3ea..c7bb1ae 100644 --- a/dist/drivers/auth/devise.common.js +++ b/dist/drivers/auth/devise.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/devise.esm.js b/dist/drivers/auth/devise.esm.js index ab57ca8..4776c22 100644 --- a/dist/drivers/auth/devise.esm.js +++ b/dist/drivers/auth/devise.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/devise.js b/dist/drivers/auth/devise.js index c7a5084..05f4cd5 100644 --- a/dist/drivers/auth/devise.js +++ b/dist/drivers/auth/devise.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/auth/devise.min.js b/dist/drivers/auth/devise.min.js index 6977ba0..491699a 100644 --- a/dist/drivers/auth/devise.min.js +++ b/dist/drivers/auth/devise.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/axios.1.x.common.js b/dist/drivers/http/axios.1.x.common.js index 6c473ad..e6c67eb 100644 --- a/dist/drivers/http/axios.1.x.common.js +++ b/dist/drivers/http/axios.1.x.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/axios.1.x.esm.js b/dist/drivers/http/axios.1.x.esm.js index e05e3e2..7d54de4 100644 --- a/dist/drivers/http/axios.1.x.esm.js +++ b/dist/drivers/http/axios.1.x.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/axios.1.x.js b/dist/drivers/http/axios.1.x.js index bed617a..ab1ed33 100644 --- a/dist/drivers/http/axios.1.x.js +++ b/dist/drivers/http/axios.1.x.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/axios.1.x.min.js b/dist/drivers/http/axios.1.x.min.js index 3a04a64..72db435 100644 --- a/dist/drivers/http/axios.1.x.min.js +++ b/dist/drivers/http/axios.1.x.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/frisbee.1.x.common.js b/dist/drivers/http/frisbee.1.x.common.js index 38b52e4..5afc0f3 100644 --- a/dist/drivers/http/frisbee.1.x.common.js +++ b/dist/drivers/http/frisbee.1.x.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/frisbee.1.x.esm.js b/dist/drivers/http/frisbee.1.x.esm.js index fee6957..cd83e19 100644 --- a/dist/drivers/http/frisbee.1.x.esm.js +++ b/dist/drivers/http/frisbee.1.x.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/frisbee.1.x.js b/dist/drivers/http/frisbee.1.x.js index 4df4fbb..e672f1d 100644 --- a/dist/drivers/http/frisbee.1.x.js +++ b/dist/drivers/http/frisbee.1.x.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/frisbee.1.x.min.js b/dist/drivers/http/frisbee.1.x.min.js index a5e8dae..a119156 100644 --- a/dist/drivers/http/frisbee.1.x.min.js +++ b/dist/drivers/http/frisbee.1.x.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/vue-resource.1.x.common.js b/dist/drivers/http/vue-resource.1.x.common.js index 334d554..51d17f4 100644 --- a/dist/drivers/http/vue-resource.1.x.common.js +++ b/dist/drivers/http/vue-resource.1.x.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/vue-resource.1.x.esm.js b/dist/drivers/http/vue-resource.1.x.esm.js index ac25293..abf4bdd 100644 --- a/dist/drivers/http/vue-resource.1.x.esm.js +++ b/dist/drivers/http/vue-resource.1.x.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/vue-resource.1.x.js b/dist/drivers/http/vue-resource.1.x.js index 4d54089..e755057 100644 --- a/dist/drivers/http/vue-resource.1.x.js +++ b/dist/drivers/http/vue-resource.1.x.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/http/vue-resource.1.x.min.js b/dist/drivers/http/vue-resource.1.x.min.js index 880bcc6..cd429d3 100644 --- a/dist/drivers/http/vue-resource.1.x.min.js +++ b/dist/drivers/http/vue-resource.1.x.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/facebook.common.js b/dist/drivers/oauth2/facebook.common.js index 27e877e..e5e88c7 100644 --- a/dist/drivers/oauth2/facebook.common.js +++ b/dist/drivers/oauth2/facebook.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/facebook.esm.js b/dist/drivers/oauth2/facebook.esm.js index 07a69a6..7a39f53 100644 --- a/dist/drivers/oauth2/facebook.esm.js +++ b/dist/drivers/oauth2/facebook.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/facebook.js b/dist/drivers/oauth2/facebook.js index 10f5697..67a877a 100644 --- a/dist/drivers/oauth2/facebook.js +++ b/dist/drivers/oauth2/facebook.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/facebook.min.js b/dist/drivers/oauth2/facebook.min.js index 400be24..f27de41 100644 --- a/dist/drivers/oauth2/facebook.min.js +++ b/dist/drivers/oauth2/facebook.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/google.common.js b/dist/drivers/oauth2/google.common.js index 027fd8b..3a5e199 100644 --- a/dist/drivers/oauth2/google.common.js +++ b/dist/drivers/oauth2/google.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/google.esm.js b/dist/drivers/oauth2/google.esm.js index 99e52a1..38b8bae 100644 --- a/dist/drivers/oauth2/google.esm.js +++ b/dist/drivers/oauth2/google.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/google.js b/dist/drivers/oauth2/google.js index a350316..cef0031 100644 --- a/dist/drivers/oauth2/google.js +++ b/dist/drivers/oauth2/google.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/oauth2/google.min.js b/dist/drivers/oauth2/google.min.js index 589583f..0f73474 100644 --- a/dist/drivers/oauth2/google.min.js +++ b/dist/drivers/oauth2/google.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/router/vue-router.2.x.common.js b/dist/drivers/router/vue-router.2.x.common.js index dd65784..df614c0 100644 --- a/dist/drivers/router/vue-router.2.x.common.js +++ b/dist/drivers/router/vue-router.2.x.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/router/vue-router.2.x.esm.js b/dist/drivers/router/vue-router.2.x.esm.js index c88226d..c3b899c 100644 --- a/dist/drivers/router/vue-router.2.x.esm.js +++ b/dist/drivers/router/vue-router.2.x.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/router/vue-router.2.x.js b/dist/drivers/router/vue-router.2.x.js index 07ea3ce..a0e9827 100644 --- a/dist/drivers/router/vue-router.2.x.js +++ b/dist/drivers/router/vue-router.2.x.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/drivers/router/vue-router.2.x.min.js b/dist/drivers/router/vue-router.2.x.min.js index 89334a4..1d5fe1a 100644 --- a/dist/drivers/router/vue-router.2.x.min.js +++ b/dist/drivers/router/vue-router.2.x.min.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ diff --git a/dist/v2/vue-auth.common.js b/dist/v2/vue-auth.common.js index 2f1cfc4..6f93271 100644 --- a/dist/v2/vue-auth.common.js +++ b/dist/v2/vue-auth.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -515,6 +515,8 @@ function _processRouterBeforeEach(cb) { if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v2/vue-auth.esm.js b/dist/v2/vue-auth.esm.js index e40abba..ca2092c 100644 --- a/dist/v2/vue-auth.esm.js +++ b/dist/v2/vue-auth.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -513,6 +513,8 @@ function _processRouterBeforeEach(cb) { if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v2/vue-auth.js b/dist/v2/vue-auth.js index 56ab2a8..8f13b9f 100644 --- a/dist/v2/vue-auth.js +++ b/dist/v2/vue-auth.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -519,6 +519,8 @@ if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v2/vue-auth.min.js b/dist/v2/vue-auth.min.js index 6d52c0b..2c90839 100644 --- a/dist/v2/vue-auth.min.js +++ b/dist/v2/vue-auth.min.js @@ -1,7 +1,7 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAuth=e()}(this,function(){"use strict";function s(t){return null!==t&&"object"==typeof t&&t.constructor!==Array}function c(t){return"string"==typeof t||"number"==typeof t?[t]:t}function u(t,e){var n,r,o,i={};for(o in e=e||{},t)s(t[o])&&"FormData"!==t[o].constructor.name?i[o]=u(t[o],{}):i[o]=t[o];for(n=0,r=(e=e.constructor!==Array?[e]:e).length;n{n.push(t+"="+encodeURIComponent(e.params[t]))}),window.open(e.url+"?"+n.join("&"),(e.window||{}).name||"_self",(e.window||{}).specs||{},!1!==(e.window||{}).replace)},j.prototype.enableImpersonate=function(){v.impersonating()&&(v.currentToken=null)},j.prototype.disableImpersonate=function(){v.impersonating()&&(v.currentToken=v.options.tokenDefaultKey)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(_),_}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAuth=e()}(this,function(){"use strict";function s(t){return null!==t&&"object"==typeof t&&t.constructor!==Array}function c(t){return"string"==typeof t||"number"==typeof t?[t]:t}function u(t,e){var n,r,o,i={};for(o in e=e||{},t)s(t[o])&&"FormData"!==t[o].constructor.name?i[o]=u(t[o],{}):i[o]=t[o];for(n=0,r=(e=e.constructor!==Array?[e]:e).length;n{n.push(t+"="+encodeURIComponent(e.params[t]))}),window.open(e.url+"?"+n.join("&"),(e.window||{}).name||"_self",(e.window||{}).specs||{},!1!==(e.window||{}).replace)},j.prototype.enableImpersonate=function(){v.impersonating()&&(v.currentToken=null)},j.prototype.disableImpersonate=function(){v.impersonating()&&(v.currentToken=v.options.tokenDefaultKey)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(_),_}); \ No newline at end of file diff --git a/dist/v3/vue-auth.common.js b/dist/v3/vue-auth.common.js index 67c6ad7..9ca694c 100644 --- a/dist/v3/vue-auth.common.js +++ b/dist/v3/vue-auth.common.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -519,6 +519,8 @@ function _processRouterBeforeEach(cb) { if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v3/vue-auth.esm.js b/dist/v3/vue-auth.esm.js index 9018864..6967c26 100644 --- a/dist/v3/vue-auth.esm.js +++ b/dist/v3/vue-auth.esm.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -515,6 +515,8 @@ function _processRouterBeforeEach(cb) { if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v3/vue-auth.js b/dist/v3/vue-auth.js index cfb37f8..492cdbb 100644 --- a/dist/v3/vue-auth.js +++ b/dist/v3/vue-auth.js @@ -1,5 +1,5 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ @@ -519,6 +519,8 @@ if (!isTokenExpired && !__auth.$vm.state.loaded && __auth.options.refreshData.enabled) { __auth.refresh().then(function () { _processAuthenticated(cb); + }, function () { + _processAuthenticated(cb); }); return; diff --git a/dist/v3/vue-auth.min.js b/dist/v3/vue-auth.min.js index 108d0ec..727e35a 100644 --- a/dist/v3/vue-auth.min.js +++ b/dist/v3/vue-auth.min.js @@ -1,7 +1,7 @@ /*! - * @websanova/vue-auth v4.1.11 + * @websanova/vue-auth v4.1.12 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e(t.VueAuth={},t.vue)}(this,function(t,e){"use strict";function s(t){return null!==t&&"object"==typeof t&&t.constructor!==Array}function c(t){return"string"==typeof t||"number"==typeof t?[t]:t}function u(t,e){var n,r,o,i={};for(o in e=e||{},t)s(t[o])&&"FormData"!==t[o].constructor.name?i[o]=u(t[o],{}):i[o]=t[o];for(n=0,r=(e=e.constructor!==Array?[e]:e).length;n{n.push(t+"="+encodeURIComponent(e.params[t]))}),window.open(e.url+"?"+n.join("&"),(e.window||{}).name||"_self",(e.window||{}).specs||{},!1!==(e.window||{}).replace)},A.prototype.enableImpersonate=function(){v.impersonating()&&(v.currentToken=null)},A.prototype.disableImpersonate=function(){v.impersonating()&&(v.currentToken=v.options.tokenDefaultKey)};function x(t){t=t.data();this.state=e.reactive(t.state)}A.prototype.install=function(t,e){t.provide(e||"auth",this),t.config.globalProperties.$auth=this},t.createAuth=function(t){return new A(x,t)},t.useAuth=function(t){return e.inject(t||"auth")},Object.defineProperty(t,"__esModule",{value:!0})}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e(t.VueAuth={},t.vue)}(this,function(t,e){"use strict";function s(t){return null!==t&&"object"==typeof t&&t.constructor!==Array}function c(t){return"string"==typeof t||"number"==typeof t?[t]:t}function u(t,e){var n,r,o,i={};for(o in e=e||{},t)s(t[o])&&"FormData"!==t[o].constructor.name?i[o]=u(t[o],{}):i[o]=t[o];for(n=0,r=(e=e.constructor!==Array?[e]:e).length;n{n.push(t+"="+encodeURIComponent(e.params[t]))}),window.open(e.url+"?"+n.join("&"),(e.window||{}).name||"_self",(e.window||{}).specs||{},!1!==(e.window||{}).replace)},A.prototype.enableImpersonate=function(){v.impersonating()&&(v.currentToken=null)},A.prototype.disableImpersonate=function(){v.impersonating()&&(v.currentToken=v.options.tokenDefaultKey)};function x(t){t=t.data();this.state=e.reactive(t.state)}A.prototype.install=function(t,e){t.provide(e||"auth",this),t.config.globalProperties.$auth=this},t.createAuth=function(t){return new A(x,t)},t.useAuth=function(t){return e.inject(t||"auth")},Object.defineProperty(t,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/package.json b/package.json index 45f999a..3d7cbe2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.1.11", + "version": "4.1.12", "name": "@websanova/vue-auth", "description": "A simple light-weight authentication library for Vue.js", "keywords": ["vue", "vue.js", "vuejs", "plugin", "jwt", "auth", "authentication", "authorize", "authenticate", "bearer", "basic", "axios", "http", "api", "json", "web", "token"],