@websanova/vue-auth
Advanced tools
Comparing version 3.1.0-beta to 3.1.1-beta
@@ -17,3 +17,3 @@ { | ||
"version": "3.1.0-beta", | ||
"version": "3.1.1-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -282,3 +282,3 @@ import * as __utils from './lib/utils.js'; | ||
forbiddenRedirect = (routeAuth || '').forbiddenRedirect || (routeAuth || '').redirect || __auth.options.forbiddenRedirect, | ||
notFoundRedirect = (routeAuth || '').redirect || __auth.options.notFoundRedirect; | ||
notFoundRedirect = (routeAuth || '').notFoundRedirect || (routeAuth || '').redirect || __auth.options.notFoundRedirect; | ||
@@ -290,2 +290,7 @@ routeAuth = __utils.toArray((routeAuth || '').roles !== undefined ? routeAuth.roles : routeAuth); | ||
__auth.$vm.transitionRedirectType = 401; | ||
if (typeof authRedirect === 'function') { | ||
authRedirect = authRedirect(transition); | ||
} | ||
cb.call(__auth, authRedirect); | ||
@@ -295,2 +300,7 @@ } | ||
__auth.$vm.transitionRedirectType = 403; | ||
if (typeof forbiddenRedirect === 'function') { | ||
forbiddenRedirect = forbiddenRedirect(transition); | ||
} | ||
cb.call(__auth, forbiddenRedirect); | ||
@@ -307,2 +317,7 @@ } | ||
__auth.$vm.transitionRedirectType = 404; | ||
if (typeof notFoundRedirect === 'function') { | ||
notFoundRedirect = notFoundRedirect(transition); | ||
} | ||
cb.call(__auth, notFoundRedirect); | ||
@@ -309,0 +324,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83328
1322