@spacelr/sdk 0.19.1 → 0.19.2

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.js CHANGED
@@ -4357,7 +4357,8 @@ var NotificationsModule = class _NotificationsModule {
4357
4357
  if (!stored) return;
4358
4358
  await this.deleteSubscription(
4359
4359
  stored.subscription.platform,
4360
- _NotificationsModule.identifierOf(stored.subscription)
4360
+ _NotificationsModule.identifierOf(stored.subscription),
4361
+ true
4361
4362
  ).catch(() => void 0);
4362
4363
  });
4363
4364
  let timer;
@@ -4374,7 +4375,7 @@ var NotificationsModule = class _NotificationsModule {
4374
4375
  this.pushQueue = run.catch(() => void 0);
4375
4376
  return run;
4376
4377
  }
4377
- deleteSubscription(platform, identifier) {
4378
+ deleteSubscription(platform, identifier, skipAuthRefresh = false) {
4378
4379
  const body = { platform };
4379
4380
  if (platform === "web") {
4380
4381
  body["endpoint"] = identifier;
@@ -4385,7 +4386,8 @@ var NotificationsModule = class _NotificationsModule {
4385
4386
  method: "DELETE",
4386
4387
  path: "/notifications/subscribe",
4387
4388
  body,
4388
- authenticated: true
4389
+ authenticated: true,
4390
+ skipAuthRefresh
4389
4391
  });
4390
4392
  }
4391
4393
  /** The value `unsubscribe()` identifies a subscription by: endpoint for web, token otherwise. */