@verdocs/js-sdk 4.2.104 → 4.2.106

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.d.mts CHANGED
@@ -227,6 +227,7 @@ interface IApiKey {
227
227
  name: string;
228
228
  organization_id: string;
229
229
  profile_id: string;
230
+ global_admin: boolean;
230
231
  client_secret?: string | null;
231
232
  permission: TApiKeyPermission;
232
233
  profile?: IProfile;
package/dist/index.d.ts CHANGED
@@ -227,6 +227,7 @@ interface IApiKey {
227
227
  name: string;
228
228
  organization_id: string;
229
229
  profile_id: string;
230
+ global_admin: boolean;
230
231
  client_secret?: string | null;
231
232
  permission: TApiKeyPermission;
232
233
  profile?: IProfile;
package/dist/index.js CHANGED
@@ -1343,7 +1343,10 @@ class VerdocsEndpoint {
1343
1343
  this.profile = null;
1344
1344
  this.sub = null;
1345
1345
  window?.console?.warn('Unable to load profile', e);
1346
- this.clearSession();
1346
+ // We can't clear the token verdocs-auth may be using temporarily during registration
1347
+ if (this.persist) {
1348
+ this.clearSession();
1349
+ }
1347
1350
  });
1348
1351
  }
1349
1352
  else {