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.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cache/LazyAsync.ts +3 -0
- package/src/oauth/RestClientWithOAuth.ts +1 -0
package/src/cache/LazyAsync.ts
CHANGED
@@ -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);
|