code: function tokenNotExpired(tokenName, jwt) {
      if (tokenName === void 0) { tokenName = AuthConfigConsts.DEFAULT_TOKEN_NAME; }
      var token = jwt || localStorage.getItem(tokenName) || sessionStorage.getItem(tokenName);
      var jwtHelper = new JwtHelper();
      return token != null && !jwtHelper.isTokenExpired(token);
  }
docs: Checks for presence of token and that token hasn't expired.
  For use with the @CanActivate router decorator and NgIf