cache _decodedToken

This commit is contained in:
Kyle Spearrin 2017-02-04 21:58:16 -05:00
parent 8d3d51a930
commit 88b2d1270a
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ function initTokenService() {
throw 'Cannot decode the token';
}
return JSON.parse(decoded);
_decodedToken = JSON.parse(decoded);
return _decodedToken;
};
TokenService.prototype.getTokenExpirationDate = function () {