@banta/sdk 4.0.2 → 4.0.3

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.
@@ -9877,10 +9877,13 @@
9877
9877
  return __awaiter(this, void 0, void 0, function () {
9878
9878
  return __generator(this, function (_b) {
9879
9879
  switch (_b.label) {
9880
- case 0: return [4 /*yield*/, this.peer.authenticate((_a = this.backend.user) === null || _a === void 0 ? void 0 : _a.token)];
9880
+ case 0:
9881
+ if (!this.backend.user) return [3 /*break*/, 2];
9882
+ return [4 /*yield*/, this.peer.authenticate((_a = this.backend.user) === null || _a === void 0 ? void 0 : _a.token)];
9881
9883
  case 1:
9882
9884
  _b.sent();
9883
- return [2 /*return*/];
9885
+ _b.label = 2;
9886
+ case 2: return [2 /*return*/];
9884
9887
  }
9885
9888
  });
9886
9889
  });