Skip to content

Commit

Permalink
Merge pull request #103 from ValeriyRadchenko/patch-1
Browse files Browse the repository at this point in the history
RE issue #89 (Add `tokenHasExpired` event)
  • Loading branch information
chenkie authored Oct 13, 2016
2 parents 45186c5 + 0c1e3f4 commit 87f41d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/angularJwt/services/authManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ angular.module('angular-jwt.authManager', [])
if (token) {
if (!jwtHelper.isTokenExpired(token)) {
authenticate();
} else {
$rootScope.$broadcast('tokenHasExpired', token);
}
}
});
Expand Down

0 comments on commit 87f41d2

Please sign in to comment.