zavadil-ts-common 1.1.59 → 1.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,9 @@ export class LazyAsync<T> {
21
21
  this.cache = v;
22
22
  this.promise = undefined;
23
23
  return v;
24
+ }).catch((err) => {
25
+ this.promise = undefined;
26
+ throw err;
24
27
  });
25
28
  }
26
29
 
@@ -155,6 +155,7 @@ export class RestClientWithOAuth extends RestClient {
155
155
  * This is basically only used when initializing and trying to determine whether we need to redirect user to login page
156
156
  */
157
157
  checkAccessToken(privilege?: string): Promise<boolean> {
158
+ console.log('checking access token', privilege);
158
159
  return this.getTokenManager()
159
160
  .then(tm => tm.getAccessToken(StringUtil.getNonEmpty(privilege, this.defaultPrivilege)))
160
161
  .then((accessToken) => true);