We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9fe9fa commit 02a8549Copy full SHA for 02a8549
src/angularJwt/services/authManager.js
@@ -49,7 +49,7 @@ angular.module('angular-jwt.authManager', [])
49
$rootScope.$broadcast('tokenHasExpired', token);
50
}
51
52
- }
+ }
53
54
function checkAuthOnRefresh() {
55
if ($injector.has('$transitions')) {
@@ -82,9 +82,9 @@ angular.module('angular-jwt.authManager', [])
82
83
function verifyState(transition) {
84
var route = transition.to();
85
+ var $state = transition.router.stateService;
86
if (route && route.data && route.data.requiresLogin === true && !isAuthenticated()) {
- invokeRedirector(config.unauthenticatedRedirector);
87
- return false;
+ return $state.target(config.loginPath);
88
89
90
0 commit comments