@stytch/vanilla-js 5.17.2 → 5.18.0

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.
@@ -216,7 +216,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
216
216
  }]);
217
217
  return ClientsideServicesProvider;
218
218
  }();
219
- var version = "5.17.2";
219
+ var version = "5.18.0";
220
220
  var NetworkClient = /*#__PURE__*/function () {
221
221
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
222
222
  _classCallCheck(this, NetworkClient);
@@ -1614,6 +1614,26 @@ var B2BIDPClient = /*#__PURE__*/_createClass(function B2BIDPClient(_networkClien
1614
1614
  }, _callee18, this);
1615
1615
  }));
1616
1616
  };
1617
+ this.oauthLogoutStart = function (data) {
1618
+ return __awaiter(_this11, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
1619
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
1620
+ while (1) switch (_context19.prev = _context19.next) {
1621
+ case 0:
1622
+ _context19.next = 2;
1623
+ return this._networkClient.fetchSDK({
1624
+ url: "/b2b/oauth/logout/start",
1625
+ method: 'POST',
1626
+ body: data
1627
+ });
1628
+ case 2:
1629
+ return _context19.abrupt("return", _context19.sent);
1630
+ case 3:
1631
+ case "end":
1632
+ return _context19.stop();
1633
+ }
1634
+ }, _callee19, this);
1635
+ }));
1636
+ };
1617
1637
  });
1618
1638
  var StytchB2BHeadlessClient = /*#__PURE__*/_createClass(function StytchB2BHeadlessClient(_PUBLIC_TOKEN, options) {
1619
1639
  var _this12 = this;
@@ -217,7 +217,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
217
217
  }]);
218
218
  return ClientsideServicesProvider;
219
219
  }();
220
- var version = "5.17.2";
220
+ var version = "5.18.0";
221
221
  var NetworkClient = /*#__PURE__*/function () {
222
222
  function NetworkClient(_publicToken, _subscriptionDataLayer, _liveAPIURL, _testAPIURL, additionalTelemetryDataFn) {
223
223
  _classCallCheck(this, NetworkClient);
@@ -1615,6 +1615,26 @@ var B2BIDPClient = /*#__PURE__*/_createClass(function B2BIDPClient(_networkClien
1615
1615
  }, _callee18, this);
1616
1616
  }));
1617
1617
  };
1618
+ this.oauthLogoutStart = function (data) {
1619
+ return internal.__awaiter(_this11, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
1620
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
1621
+ while (1) switch (_context19.prev = _context19.next) {
1622
+ case 0:
1623
+ _context19.next = 2;
1624
+ return this._networkClient.fetchSDK({
1625
+ url: "/b2b/oauth/logout/start",
1626
+ method: 'POST',
1627
+ body: data
1628
+ });
1629
+ case 2:
1630
+ return _context19.abrupt("return", _context19.sent);
1631
+ case 3:
1632
+ case "end":
1633
+ return _context19.stop();
1634
+ }
1635
+ }, _callee19, this);
1636
+ }));
1637
+ };
1618
1638
  });
1619
1639
  var StytchB2BHeadlessClient = /*#__PURE__*/_createClass(function StytchB2BHeadlessClient(_PUBLIC_TOKEN, options) {
1620
1640
  var _this12 = this;