@stytch/vanilla-js 4.7.1 → 4.7.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.
@@ -167,7 +167,7 @@ var g,
167
167
  }
168
168
  return a(t, c(Error)), r(t);
169
169
  }(),
170
- O = function (e) {
170
+ C = function (e) {
171
171
  function t(e) {
172
172
  var r;
173
173
  i(this, t), (r = s(this, t)).name = "StytchSDKAPIError";
@@ -180,20 +180,20 @@ var g,
180
180
  }
181
181
  return a(t, c(Error)), r(t);
182
182
  }(),
183
- C = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"],
184
- T = function (e) {
183
+ O = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"],
184
+ A = function (e) {
185
185
  function t(e, r) {
186
186
  var n;
187
187
  return i(this, t), (n = s(this, t, [r])).name = e, n;
188
188
  }
189
189
  return a(t, c(Error)), r(t);
190
190
  }(),
191
- A = function (e) {
191
+ T = function (e) {
192
192
  function t(e) {
193
193
  var r;
194
194
  return i(this, t), r = s(this, t, ["StytchAPIUnreachableError", e]), Object.setPrototypeOf(o(r), t.prototype), r;
195
195
  }
196
- return a(t, T), r(t);
196
+ return a(t, A), r(t);
197
197
  }(),
198
198
  E = function (e) {
199
199
  function t(e) {
@@ -204,7 +204,7 @@ var g,
204
204
  }).join("\n");
205
205
  return s(this, t, ["StytchAPISchemaError", "Request does not match expected schema\n".concat(n)]);
206
206
  }
207
- return a(t, T), r(t);
207
+ return a(t, A), r(t);
208
208
  }(),
209
209
  D = function (e) {
210
210
  function t(e) {
@@ -217,14 +217,14 @@ var g,
217
217
  u = e.request_id;
218
218
  return (r = s(this, t, ["StytchAPIError", "[".concat(n, "] ").concat(o, "\n") + "".concat(a, "\n") + "See ".concat(c, " for more information.\n") + (u ? "request_id: ".concat(u, "\n") : "")])).error_type = o, r.error_message = a, r.error_url = c, r.request_id = u, r.status_code = n, r;
219
219
  }
220
- return a(t, T), r(t);
220
+ return a(t, A), r(t);
221
221
  }(),
222
222
  R = function (e) {
223
223
  function t(e, r, n) {
224
224
  var o;
225
225
  return i(this, t), (o = s(this, t, [e, r])).options = n, o;
226
226
  }
227
- return a(t, T), r(t);
227
+ return a(t, A), r(t);
228
228
  }(),
229
229
  I = function (e) {
230
230
  function t() {
@@ -548,7 +548,7 @@ function _e() {
548
548
  o = Object.create(s.prototype),
549
549
  a = new E(n || []);
550
550
  return i(o, "_invoke", {
551
- value: O(e, r, a)
551
+ value: C(e, r, a)
552
552
  }), o;
553
553
  }
554
554
  function d(e, t, r) {
@@ -618,7 +618,7 @@ function _e() {
618
618
  }
619
619
  });
620
620
  }
621
- function O(t, r, n) {
621
+ function C(t, r, n) {
622
622
  var i = h;
623
623
  return function (s, o) {
624
624
  if (i === f) throw new Error("Generator is already running");
@@ -632,7 +632,7 @@ function _e() {
632
632
  for (n.method = s, n.arg = o;;) {
633
633
  var a = n.delegate;
634
634
  if (a) {
635
- var c = C(a, n);
635
+ var c = O(a, n);
636
636
  if (c) {
637
637
  if (c === m) continue;
638
638
  return c;
@@ -655,29 +655,29 @@ function _e() {
655
655
  }
656
656
  };
657
657
  }
658
- function C(t, r) {
658
+ function O(t, r) {
659
659
  var n = r.method,
660
660
  i = t.iterator[n];
661
- if (i === e) return r.delegate = null, "throw" === n && t.iterator["return"] && (r.method = "return", r.arg = e, C(t, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), m;
661
+ if (i === e) return r.delegate = null, "throw" === n && t.iterator["return"] && (r.method = "return", r.arg = e, O(t, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), m;
662
662
  var s = d(i, t.iterator, r.arg);
663
663
  if ("throw" === s.type) return r.method = "throw", r.arg = s.arg, r.delegate = null, m;
664
664
  var o = s.arg;
665
665
  return o ? o.done ? (r[t.resultName] = o.value, r.next = t.nextLoc, "return" !== r.method && (r.method = "next", r.arg = e), r.delegate = null, m) : o : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, m);
666
666
  }
667
- function T(e) {
667
+ function A(e) {
668
668
  var t = {
669
669
  tryLoc: e[0]
670
670
  };
671
671
  1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t);
672
672
  }
673
- function A(e) {
673
+ function T(e) {
674
674
  var t = e.completion || {};
675
675
  t.type = "normal", delete t.arg, e.completion = t;
676
676
  }
677
677
  function E(e) {
678
678
  this.tryEntries = [{
679
679
  tryLoc: "root"
680
- }], e.forEach(T, this), this.reset(!0);
680
+ }], e.forEach(A, this), this.reset(!0);
681
681
  }
682
682
  function D(t) {
683
683
  if (t || "" === t) {
@@ -736,7 +736,7 @@ function _e() {
736
736
  }, t.values = D, E.prototype = {
737
737
  constructor: E,
738
738
  reset: function reset(t) {
739
- if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(A), !t) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e);
739
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(T), !t) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e);
740
740
  },
741
741
  stop: function stop() {
742
742
  this.done = !0;
@@ -788,7 +788,7 @@ function _e() {
788
788
  finish: function finish(e) {
789
789
  for (var t = this.tryEntries.length - 1; t >= 0; --t) {
790
790
  var r = this.tryEntries[t];
791
- if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), A(r), m;
791
+ if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), T(r), m;
792
792
  }
793
793
  },
794
794
  "catch": function _catch(e) {
@@ -798,7 +798,7 @@ function _e() {
798
798
  var n = r.completion;
799
799
  if ("throw" === n.type) {
800
800
  var i = n.arg;
801
- A(r);
801
+ T(r);
802
802
  }
803
803
  return i;
804
804
  }
@@ -905,9 +905,9 @@ function xe(e) {
905
905
  }
906
906
  exports.B2BProducts = void 0, (g = exports.B2BProducts || (exports.B2BProducts = {})).emailMagicLinks = "emailMagicLinks", g.sso = "sso", g.passwords = "passwords", g.oauth = "oauth", exports.AuthFlowType = void 0, (b = exports.AuthFlowType || (exports.AuthFlowType = {})).Discovery = "Discovery", b.Organization = "Organization", b.PasswordReset = "PasswordReset", exports.B2BMFAProducts = void 0, (k = exports.B2BMFAProducts || (exports.B2BMFAProducts = {})).smsOtp = "smsOtp", k.totp = "totp", exports.B2BOAuthProviders = void 0, (w = exports.B2BOAuthProviders || (exports.B2BOAuthProviders = {})).Google = "google", w.Microsoft = "microsoft";
907
907
  var Pe,
908
- Oe = "https://accounts.google.com/gsi",
909
- Ce = "".concat(Oe, "/client");
910
- function Te(e, t) {
908
+ Ce = "https://accounts.google.com/gsi",
909
+ Oe = "".concat(Ce, "/client");
910
+ function Ae(e, t) {
911
911
  var r = {};
912
912
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
913
913
  if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
@@ -916,7 +916,7 @@ function Te(e, t) {
916
916
  }
917
917
  return r;
918
918
  }
919
- function Ae(e, t, r, n) {
919
+ function Te(e, t, r, n) {
920
920
  return new (r || (r = Promise))(function (i, s) {
921
921
  function o(e) {
922
922
  try {
@@ -971,7 +971,7 @@ function Re(e) {
971
971
  s = e.xSDKClientHeader,
972
972
  o = e.xSDKParentHostHeader,
973
973
  a = e.body;
974
- return Ae(this, void 0, void 0, _e().mark(function e() {
974
+ return Te(this, void 0, void 0, _e().mark(function e() {
975
975
  var c, u, l, d, h, p;
976
976
  return _e().wrap(function (e) {
977
977
  for (;;) switch (e.prev = e.next) {
@@ -993,7 +993,7 @@ function Re(e) {
993
993
  e.next = 13;
994
994
  break;
995
995
  }
996
- throw new A("Unable to contact the Stytch servers. Are you online?");
996
+ throw new T("Unable to contact the Stytch servers. Are you online?");
997
997
  case 13:
998
998
  throw e.t0;
999
999
  case 14:
@@ -1005,7 +1005,7 @@ function Re(e) {
1005
1005
  case 18:
1006
1006
  return d = e.sent, e.abrupt("return", d.data);
1007
1007
  case 22:
1008
- throw e.prev = 22, e.t1 = e["catch"](15), new A("Invalid JSON response from the Stytch servers.");
1008
+ throw e.prev = 22, e.t1 = e["catch"](15), new T("Invalid JSON response from the Stytch servers.");
1009
1009
  case 25:
1010
1010
  if (200 === l.status || !(null === (t = l.headers.get("content-type")) || void 0 === t ? void 0 : t.includes("application/json"))) {
1011
1011
  e.next = 38;
@@ -1016,7 +1016,7 @@ function Re(e) {
1016
1016
  h = e.sent, e.next = 35;
1017
1017
  break;
1018
1018
  case 32:
1019
- throw e.prev = 32, e.t2 = e["catch"](26), new A("Invalid or no response from server");
1019
+ throw e.prev = 32, e.t2 = e["catch"](26), new T("Invalid or no response from server");
1020
1020
  case 35:
1021
1021
  if (!("body" in h || "params" in h || "query" in h)) {
1022
1022
  e.next = 37;
@@ -1031,7 +1031,7 @@ function Re(e) {
1031
1031
  p = e.sent, e.next = 47;
1032
1032
  break;
1033
1033
  case 44:
1034
- throw e.prev = 44, e.t3 = e["catch"](38), new A("Invalid response from the Stytch servers.");
1034
+ throw e.prev = 44, e.t3 = e["catch"](38), new T("Invalid response from the Stytch servers.");
1035
1035
  case 47:
1036
1036
  if (!p.includes("Captcha required")) {
1037
1037
  e.next = 49;
@@ -1039,7 +1039,7 @@ function Re(e) {
1039
1039
  }
1040
1040
  throw new De(Pe.RequiredCatcha);
1041
1041
  case 49:
1042
- throw new A("Invalid response from the Stytch servers.");
1042
+ throw new T("Invalid response from the Stytch servers.");
1043
1043
  case 50:
1044
1044
  case "end":
1045
1045
  return e.stop();
@@ -1073,7 +1073,7 @@ function Ue(e, t, r) {
1073
1073
  }
1074
1074
  var Ne = {};
1075
1075
  function Ke(e, t) {
1076
- return Ae(this, void 0, void 0, _e().mark(function r() {
1076
+ return Te(this, void 0, void 0, _e().mark(function r() {
1077
1077
  return _e().wrap(function (r) {
1078
1078
  for (;;) switch (r.prev = r.next) {
1079
1079
  case 0:
@@ -1185,10 +1185,10 @@ var Ge,
1185
1185
  return t;
1186
1186
  },
1187
1187
  $e = function $e(e) {
1188
- return Te(e, ["request_id", "status_code"]);
1188
+ return Ae(e, ["request_id", "status_code"]);
1189
1189
  },
1190
1190
  Xe = function Xe(e) {
1191
- return Te(e, ["__user"]);
1191
+ return Ae(e, ["__user"]);
1192
1192
  },
1193
1193
  Ze = ve(function e(t, r, n) {
1194
1194
  var i = this,
@@ -1196,7 +1196,7 @@ var Ge,
1196
1196
  return Promise.resolve(void 0);
1197
1197
  };
1198
1198
  ge(this, e), this.bootstrapPromise = n, this.isEnabled = function () {
1199
- return Ae(i, void 0, void 0, _e().mark(function e() {
1199
+ return Te(i, void 0, void 0, _e().mark(function e() {
1200
1200
  return _e().wrap(function (e) {
1201
1201
  for (;;) switch (e.prev = e.next) {
1202
1202
  case 0:
@@ -1210,7 +1210,7 @@ var Ge,
1210
1210
  }, e, this);
1211
1211
  }));
1212
1212
  }, this.getTelemetryID = function () {
1213
- return Ae(i, void 0, void 0, _e().mark(function e() {
1213
+ return Te(i, void 0, void 0, _e().mark(function e() {
1214
1214
  var t, r, n, i;
1215
1215
  return _e().wrap(function (e) {
1216
1216
  for (;;) switch (e.prev = e.next) {
@@ -1233,7 +1233,7 @@ var Ge,
1233
1233
  }, e, this);
1234
1234
  }));
1235
1235
  }, this.getDFPTelemetryIDAndCaptcha = function () {
1236
- return Ae(i, void 0, void 0, _e().mark(function e() {
1236
+ return Te(i, void 0, void 0, _e().mark(function e() {
1237
1237
  var t, r, n, i, s, o;
1238
1238
  return _e().wrap(function (e) {
1239
1239
  for (;;) switch (e.prev = e.next) {
@@ -1278,7 +1278,7 @@ var Ge,
1278
1278
  }, e, this);
1279
1279
  }));
1280
1280
  }, this.retryWithCaptchaAndDFP = function (e, t) {
1281
- return Ae(i, void 0, void 0, _e().mark(function r() {
1281
+ return Te(i, void 0, void 0, _e().mark(function r() {
1282
1282
  var n, i, s;
1283
1283
  return _e().wrap(function (r) {
1284
1284
  for (;;) switch (r.prev = r.next) {
@@ -1309,7 +1309,7 @@ var Ge,
1309
1309
  }, r, this);
1310
1310
  }));
1311
1311
  }, this.state = n.then(function (e) {
1312
- return Ae(i, void 0, void 0, _e().mark(function n() {
1312
+ return Te(i, void 0, void 0, _e().mark(function n() {
1313
1313
  return _e().wrap(function (n) {
1314
1314
  for (;;) switch (n.prev = n.next) {
1315
1315
  case 0:
@@ -1348,7 +1348,7 @@ var Ge,
1348
1348
  Qe = function Qe() {
1349
1349
  return {
1350
1350
  isEnabled: function isEnabled() {
1351
- return Ae(void 0, void 0, void 0, _e().mark(function e() {
1351
+ return Te(void 0, void 0, void 0, _e().mark(function e() {
1352
1352
  return _e().wrap(function (e) {
1353
1353
  for (;;) switch (e.prev = e.next) {
1354
1354
  case 0:
@@ -1361,7 +1361,7 @@ var Ge,
1361
1361
  }));
1362
1362
  },
1363
1363
  getTelemetryID: function getTelemetryID() {
1364
- return Ae(void 0, void 0, void 0, _e().mark(function e() {
1364
+ return Te(void 0, void 0, void 0, _e().mark(function e() {
1365
1365
  return _e().wrap(function (e) {
1366
1366
  for (;;) switch (e.prev = e.next) {
1367
1367
  case 0:
@@ -1374,7 +1374,7 @@ var Ge,
1374
1374
  }));
1375
1375
  },
1376
1376
  getDFPTelemetryIDAndCaptcha: function getDFPTelemetryIDAndCaptcha() {
1377
- return Ae(void 0, void 0, void 0, _e().mark(function e() {
1377
+ return Te(void 0, void 0, void 0, _e().mark(function e() {
1378
1378
  return _e().wrap(function (e) {
1379
1379
  for (;;) switch (e.prev = e.next) {
1380
1380
  case 0:
@@ -1390,7 +1390,7 @@ var Ge,
1390
1390
  }));
1391
1391
  },
1392
1392
  retryWithCaptchaAndDFP: function retryWithCaptchaAndDFP() {
1393
- return Ae(void 0, void 0, void 0, _e().mark(function e() {
1393
+ return Te(void 0, void 0, void 0, _e().mark(function e() {
1394
1394
  return _e().wrap(function (e) {
1395
1395
  for (;;) switch (e.prev = e.next) {
1396
1396
  case 0:
@@ -1432,11 +1432,11 @@ var Ge,
1432
1432
  case "StytchSDKSchemaError":
1433
1433
  return e.inflate(P, t);
1434
1434
  case "StytchAPIUnreachableError":
1435
- return e.inflate(A, t);
1435
+ return e.inflate(T, t);
1436
1436
  case "StytchAPISchemaError":
1437
1437
  return e.inflate(E, t);
1438
1438
  case "StytchSDKAPIError":
1439
- return e.inflate(O, t);
1439
+ return e.inflate(C, t);
1440
1440
  case "StytchAPIError":
1441
1441
  return e.inflate(D, t);
1442
1442
  case "TypeError":
@@ -1471,7 +1471,7 @@ var Ge,
1471
1471
  }, {
1472
1472
  key: "flush",
1473
1473
  value: function value() {
1474
- return Ae(this, void 0, void 0, _e().mark(function e() {
1474
+ return Te(this, void 0, void 0, _e().mark(function e() {
1475
1475
  var t;
1476
1476
  return _e().wrap(function (e) {
1477
1477
  for (;;) switch (e.prev = e.next) {
@@ -1509,7 +1509,7 @@ var Ge,
1509
1509
  var rt = ve(function e(t, r) {
1510
1510
  var n = this;
1511
1511
  ge(this, e), this._networkClient = t, this._subscriptionService = r, this.get = function () {
1512
- return Ae(n, void 0, void 0, _e().mark(function e() {
1512
+ return Te(n, void 0, void 0, _e().mark(function e() {
1513
1513
  var t, r;
1514
1514
  return _e().wrap(function (e) {
1515
1515
  for (;;) switch (e.prev = e.next) {
@@ -1530,7 +1530,7 @@ var rt = ve(function e(t, r) {
1530
1530
  }, this.getSync = function () {
1531
1531
  return n._subscriptionService.getUser();
1532
1532
  }, this.update = function (e) {
1533
- return Ae(n, void 0, void 0, _e().mark(function t() {
1533
+ return Te(n, void 0, void 0, _e().mark(function t() {
1534
1534
  var r, n;
1535
1535
  return _e().wrap(function (t) {
1536
1536
  for (;;) switch (t.prev = t.next) {
@@ -1550,7 +1550,7 @@ var rt = ve(function e(t, r) {
1550
1550
  }, t, this);
1551
1551
  }));
1552
1552
  }, this.deleteEmail = function (e) {
1553
- return Ae(n, void 0, void 0, _e().mark(function t() {
1553
+ return Te(n, void 0, void 0, _e().mark(function t() {
1554
1554
  var r, n;
1555
1555
  return _e().wrap(function (t) {
1556
1556
  for (;;) switch (t.prev = t.next) {
@@ -1569,7 +1569,7 @@ var rt = ve(function e(t, r) {
1569
1569
  }, t, this);
1570
1570
  }));
1571
1571
  }, this.deletePhoneNumber = function (e) {
1572
- return Ae(n, void 0, void 0, _e().mark(function t() {
1572
+ return Te(n, void 0, void 0, _e().mark(function t() {
1573
1573
  var r, n;
1574
1574
  return _e().wrap(function (t) {
1575
1575
  for (;;) switch (t.prev = t.next) {
@@ -1588,7 +1588,7 @@ var rt = ve(function e(t, r) {
1588
1588
  }, t, this);
1589
1589
  }));
1590
1590
  }, this.deleteTOTP = function (e) {
1591
- return Ae(n, void 0, void 0, _e().mark(function t() {
1591
+ return Te(n, void 0, void 0, _e().mark(function t() {
1592
1592
  var r, n;
1593
1593
  return _e().wrap(function (t) {
1594
1594
  for (;;) switch (t.prev = t.next) {
@@ -1607,7 +1607,7 @@ var rt = ve(function e(t, r) {
1607
1607
  }, t, this);
1608
1608
  }));
1609
1609
  }, this.deleteOAuthRegistration = function (e) {
1610
- return Ae(n, void 0, void 0, _e().mark(function t() {
1610
+ return Te(n, void 0, void 0, _e().mark(function t() {
1611
1611
  var r, n;
1612
1612
  return _e().wrap(function (t) {
1613
1613
  for (;;) switch (t.prev = t.next) {
@@ -1626,7 +1626,7 @@ var rt = ve(function e(t, r) {
1626
1626
  }, t, this);
1627
1627
  }));
1628
1628
  }, this.deleteWebauthnRegistration = function (e) {
1629
- return Ae(n, void 0, void 0, _e().mark(function t() {
1629
+ return Te(n, void 0, void 0, _e().mark(function t() {
1630
1630
  var r, n;
1631
1631
  return _e().wrap(function (t) {
1632
1632
  for (;;) switch (t.prev = t.next) {
@@ -1645,7 +1645,7 @@ var rt = ve(function e(t, r) {
1645
1645
  }, t, this);
1646
1646
  }));
1647
1647
  }, this.deleteBiometricRegistration = function (e) {
1648
- return Ae(n, void 0, void 0, _e().mark(function t() {
1648
+ return Te(n, void 0, void 0, _e().mark(function t() {
1649
1649
  var r, n;
1650
1650
  return _e().wrap(function (t) {
1651
1651
  for (;;) switch (t.prev = t.next) {
@@ -1683,7 +1683,7 @@ var rt = ve(function e(t, r) {
1683
1683
  (null == r ? void 0 : r.session) !== t && (t = null !== (n = null == r ? void 0 : r.session) && void 0 !== n ? n : null, e(t));
1684
1684
  });
1685
1685
  }, this.revoke = function (e) {
1686
- return Ae(n, void 0, void 0, _e().mark(function t() {
1686
+ return Te(n, void 0, void 0, _e().mark(function t() {
1687
1687
  var r;
1688
1688
  return _e().wrap(function (t) {
1689
1689
  for (;;) switch (t.prev = t.next) {
@@ -1696,7 +1696,7 @@ var rt = ve(function e(t, r) {
1696
1696
  case 3:
1697
1697
  return r = t.sent, this._subscriptionService.destroyState(), t.abrupt("return", r);
1698
1698
  case 8:
1699
- throw t.prev = 8, t.t0 = t["catch"](0), ((null == e ? void 0 : e.forceClear) || C.includes(t.t0.error_type)) && this._subscriptionService.destroyState(), t.t0;
1699
+ throw t.prev = 8, t.t0 = t["catch"](0), ((null == e ? void 0 : e.forceClear) || O.includes(t.t0.error_type)) && this._subscriptionService.destroyState(), t.t0;
1700
1700
  case 12:
1701
1701
  case "end":
1702
1702
  return t.stop();
@@ -1704,7 +1704,7 @@ var rt = ve(function e(t, r) {
1704
1704
  }, t, this, [[0, 8]]);
1705
1705
  }));
1706
1706
  }, this.authenticate = function (e) {
1707
- return Ae(n, void 0, void 0, _e().mark(function t() {
1707
+ return Te(n, void 0, void 0, _e().mark(function t() {
1708
1708
  var r,
1709
1709
  n,
1710
1710
  i,
@@ -1747,7 +1747,7 @@ var rt = ve(function e(t, r) {
1747
1747
  }
1748
1748
  return t.abrupt("return", this.authenticate(e));
1749
1749
  case 17:
1750
- throw C.includes(t.t0.error_type) && this._subscriptionService.destroySession(), t.t0;
1750
+ throw O.includes(t.t0.error_type) && this._subscriptionService.destroySession(), t.t0;
1751
1751
  case 19:
1752
1752
  case "end":
1753
1753
  return t.stop();
@@ -1779,7 +1779,7 @@ var rt = ve(function e(t, r) {
1779
1779
  ge(this, e), this._networkClient = t, this._subscriptionService = r, this._pkceManager = n, this._passwordResetPKCEManager = i, this._config = o, this.dfpProtectedAuth = a, this.email = {
1780
1780
  loginOrCreate: function loginOrCreate(e) {
1781
1781
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
1782
- return Ae(s, void 0, void 0, _e().mark(function r() {
1782
+ return Te(s, void 0, void 0, _e().mark(function r() {
1783
1783
  var n, i, s, o, a, c, u;
1784
1784
  return _e().wrap(function (r) {
1785
1785
  for (;;) switch (r.prev = r.next) {
@@ -1817,7 +1817,7 @@ var rt = ve(function e(t, r) {
1817
1817
  },
1818
1818
  send: function send(e) {
1819
1819
  var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
1820
- return Ae(s, void 0, void 0, _e().mark(function r() {
1820
+ return Te(s, void 0, void 0, _e().mark(function r() {
1821
1821
  var n, i, s, o, a, c, u, l, d;
1822
1822
  return _e().wrap(function (r) {
1823
1823
  for (;;) switch (r.prev = r.next) {
@@ -1854,7 +1854,7 @@ var rt = ve(function e(t, r) {
1854
1854
  }));
1855
1855
  }
1856
1856
  }, this.authenticate = function (e, t) {
1857
- return Ae(s, void 0, void 0, _e().mark(function r() {
1857
+ return Te(s, void 0, void 0, _e().mark(function r() {
1858
1858
  var n, i;
1859
1859
  return _e().wrap(function (r) {
1860
1860
  for (;;) switch (r.prev = r.next) {
@@ -1911,7 +1911,7 @@ var rt = ve(function e(t, r) {
1911
1911
  return ve(e, [{
1912
1912
  key: "getCodeChallenge",
1913
1913
  value: function value() {
1914
- return Ae(this, void 0, void 0, _e().mark(function e() {
1914
+ return Te(this, void 0, void 0, _e().mark(function e() {
1915
1915
  var t;
1916
1916
  return _e().wrap(function (e) {
1917
1917
  for (;;) switch (e.prev = e.next) {
@@ -1937,7 +1937,7 @@ var rt = ve(function e(t, r) {
1937
1937
  }, {
1938
1938
  key: "handlePKCEForAuthenticate",
1939
1939
  value: function value(e, t) {
1940
- return Ae(this, void 0, void 0, _e().mark(function r() {
1940
+ return Te(this, void 0, void 0, _e().mark(function r() {
1941
1941
  var n, i, s;
1942
1942
  return _e().wrap(function (r) {
1943
1943
  for (;;) switch (r.prev = r.next) {
@@ -1971,7 +1971,7 @@ var rt = ve(function e(t, r) {
1971
1971
  s = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : Qe();
1972
1972
  ge(this, e), this._networkClient = t, this._subscriptionService = r, this.executeRecaptcha = i, this.dfpProtectedAuth = s, this.sms = {
1973
1973
  loginOrCreate: function loginOrCreate(e, t) {
1974
- return Ae(n, void 0, void 0, _e().mark(function r() {
1974
+ return Te(n, void 0, void 0, _e().mark(function r() {
1975
1975
  var n, i, s, o;
1976
1976
  return _e().wrap(function (r) {
1977
1977
  for (;;) switch (r.prev = r.next) {
@@ -1997,7 +1997,7 @@ var rt = ve(function e(t, r) {
1997
1997
  }));
1998
1998
  },
1999
1999
  send: function send(e, t) {
2000
- return Ae(n, void 0, void 0, _e().mark(function r() {
2000
+ return Te(n, void 0, void 0, _e().mark(function r() {
2001
2001
  var n, i, s, o, a, c;
2002
2002
  return _e().wrap(function (r) {
2003
2003
  for (;;) switch (r.prev = r.next) {
@@ -2024,7 +2024,7 @@ var rt = ve(function e(t, r) {
2024
2024
  }
2025
2025
  }, this.whatsapp = {
2026
2026
  loginOrCreate: function loginOrCreate(e, t) {
2027
- return Ae(n, void 0, void 0, _e().mark(function r() {
2027
+ return Te(n, void 0, void 0, _e().mark(function r() {
2028
2028
  var n, i, s, o;
2029
2029
  return _e().wrap(function (r) {
2030
2030
  for (;;) switch (r.prev = r.next) {
@@ -2050,7 +2050,7 @@ var rt = ve(function e(t, r) {
2050
2050
  }));
2051
2051
  },
2052
2052
  send: function send(e, t) {
2053
- return Ae(n, void 0, void 0, _e().mark(function r() {
2053
+ return Te(n, void 0, void 0, _e().mark(function r() {
2054
2054
  var n, i, s, o, a, c;
2055
2055
  return _e().wrap(function (r) {
2056
2056
  for (;;) switch (r.prev = r.next) {
@@ -2077,7 +2077,7 @@ var rt = ve(function e(t, r) {
2077
2077
  }
2078
2078
  }, this.email = {
2079
2079
  loginOrCreate: function loginOrCreate(e, t) {
2080
- return Ae(n, void 0, void 0, _e().mark(function r() {
2080
+ return Te(n, void 0, void 0, _e().mark(function r() {
2081
2081
  var n, i;
2082
2082
  return _e().wrap(function (r) {
2083
2083
  for (;;) switch (r.prev = r.next) {
@@ -2101,7 +2101,7 @@ var rt = ve(function e(t, r) {
2101
2101
  }));
2102
2102
  },
2103
2103
  send: function send(e, t) {
2104
- return Ae(n, void 0, void 0, _e().mark(function r() {
2104
+ return Te(n, void 0, void 0, _e().mark(function r() {
2105
2105
  var n, i, s, o;
2106
2106
  return _e().wrap(function (r) {
2107
2107
  for (;;) switch (r.prev = r.next) {
@@ -2125,7 +2125,7 @@ var rt = ve(function e(t, r) {
2125
2125
  }));
2126
2126
  }
2127
2127
  }, this.authenticate = function (e, t, r) {
2128
- return Ae(n, void 0, void 0, _e().mark(function n() {
2128
+ return Te(n, void 0, void 0, _e().mark(function n() {
2129
2129
  var i, s, o, a, c;
2130
2130
  return _e().wrap(function (n) {
2131
2131
  for (;;) switch (n.prev = n.next) {
@@ -2207,7 +2207,7 @@ var rt = ve(function e(t, r) {
2207
2207
  return ve(e, [{
2208
2208
  key: "authenticate",
2209
2209
  value: function value(e, t) {
2210
- return Ae(this, void 0, void 0, _e().mark(function r() {
2210
+ return Te(this, void 0, void 0, _e().mark(function r() {
2211
2211
  var n, i;
2212
2212
  return _e().wrap(function (r) {
2213
2213
  for (;;) switch (r.prev = r.next) {
@@ -2243,7 +2243,7 @@ var rt = ve(function e(t, r) {
2243
2243
  }, {
2244
2244
  key: "getBaseApiUrl",
2245
2245
  value: function value() {
2246
- return Ae(this, void 0, void 0, _e().mark(function e() {
2246
+ return Te(this, void 0, void 0, _e().mark(function e() {
2247
2247
  var t, r;
2248
2248
  return _e().wrap(function (e) {
2249
2249
  for (;;) switch (e.prev = e.next) {
@@ -2280,7 +2280,7 @@ var rt = ve(function e(t, r) {
2280
2280
  i = r.signup_redirect_url,
2281
2281
  s = r.custom_scopes,
2282
2282
  o = r.provider_params;
2283
- return Ae(t, void 0, void 0, _e().mark(function t() {
2283
+ return Te(t, void 0, void 0, _e().mark(function t() {
2284
2284
  var r, a, c, u, l, d, h;
2285
2285
  return _e().wrap(function (t) {
2286
2286
  for (;;) switch (t.prev = t.next) {
@@ -2332,7 +2332,7 @@ var rt = ve(function e(t, r) {
2332
2332
  return ve(e, [{
2333
2333
  key: "authenticateStart",
2334
2334
  value: function value(e) {
2335
- return Ae(this, void 0, void 0, _e().mark(function t() {
2335
+ return Te(this, void 0, void 0, _e().mark(function t() {
2336
2336
  var r, n, i;
2337
2337
  return _e().wrap(function (t) {
2338
2338
  for (;;) switch (t.prev = t.next) {
@@ -2359,7 +2359,7 @@ var rt = ve(function e(t, r) {
2359
2359
  }, {
2360
2360
  key: "authenticate",
2361
2361
  value: function value(e) {
2362
- return Ae(this, void 0, void 0, _e().mark(function t() {
2362
+ return Te(this, void 0, void 0, _e().mark(function t() {
2363
2363
  var r, n, i, s;
2364
2364
  return _e().wrap(function (t) {
2365
2365
  for (;;) switch (t.prev = t.next) {
@@ -2406,7 +2406,7 @@ var rt = ve(function e(t, r) {
2406
2406
  return ve(e, [{
2407
2407
  key: "create",
2408
2408
  value: function value(e) {
2409
- return Ae(this, void 0, void 0, _e().mark(function t() {
2409
+ return Te(this, void 0, void 0, _e().mark(function t() {
2410
2410
  var r;
2411
2411
  return _e().wrap(function (t) {
2412
2412
  for (;;) switch (t.prev = t.next) {
@@ -2431,7 +2431,7 @@ var rt = ve(function e(t, r) {
2431
2431
  }, {
2432
2432
  key: "authenticate",
2433
2433
  value: function value(e) {
2434
- return Ae(this, void 0, void 0, _e().mark(function t() {
2434
+ return Te(this, void 0, void 0, _e().mark(function t() {
2435
2435
  var r, n, i, s;
2436
2436
  return _e().wrap(function (t) {
2437
2437
  for (;;) switch (t.prev = t.next) {
@@ -2470,7 +2470,7 @@ var rt = ve(function e(t, r) {
2470
2470
  }, {
2471
2471
  key: "recoveryCodes",
2472
2472
  value: function value() {
2473
- return Ae(this, void 0, void 0, _e().mark(function e() {
2473
+ return Te(this, void 0, void 0, _e().mark(function e() {
2474
2474
  return _e().wrap(function (e) {
2475
2475
  for (;;) switch (e.prev = e.next) {
2476
2476
  case 0:
@@ -2489,7 +2489,7 @@ var rt = ve(function e(t, r) {
2489
2489
  }, {
2490
2490
  key: "recover",
2491
2491
  value: function value(e) {
2492
- return Ae(this, void 0, void 0, _e().mark(function t() {
2492
+ return Te(this, void 0, void 0, _e().mark(function t() {
2493
2493
  var r, n, i, s;
2494
2494
  return _e().wrap(function (t) {
2495
2495
  for (;;) switch (t.prev = t.next) {
@@ -2668,18 +2668,18 @@ var yt = {
2668
2668
  function Pt(e) {
2669
2669
  return ft(lt, kt, e);
2670
2670
  }
2671
- function Ot(e) {
2671
+ function Ct(e) {
2672
2672
  return ft(dt, wt, e);
2673
2673
  }
2674
- function Ct(e) {
2675
- return Ae(this, void 0, void 0, _e().mark(function t() {
2674
+ function Ot(e) {
2675
+ return Te(this, void 0, void 0, _e().mark(function t() {
2676
2676
  var r;
2677
2677
  return _e().wrap(function (t) {
2678
2678
  for (;;) switch (t.prev = t.next) {
2679
2679
  case 0:
2680
2680
  return t.next = 2, navigator.credentials.create(Pt(e));
2681
2681
  case 2:
2682
- return r = t.sent, t.abrupt("return", Ot(r));
2682
+ return r = t.sent, t.abrupt("return", Ct(r));
2683
2683
  case 4:
2684
2684
  case "end":
2685
2685
  return t.stop();
@@ -2687,21 +2687,21 @@ function Ct(e) {
2687
2687
  }, t);
2688
2688
  }));
2689
2689
  }
2690
- function Tt(e) {
2690
+ function At(e) {
2691
2691
  return ft(lt, St, e);
2692
2692
  }
2693
- function At(e) {
2693
+ function Tt(e) {
2694
2694
  return ft(dt, xt, e);
2695
2695
  }
2696
2696
  function Et(e) {
2697
- return Ae(this, void 0, void 0, _e().mark(function t() {
2697
+ return Te(this, void 0, void 0, _e().mark(function t() {
2698
2698
  var r;
2699
2699
  return _e().wrap(function (t) {
2700
2700
  for (;;) switch (t.prev = t.next) {
2701
2701
  case 0:
2702
- return t.next = 2, navigator.credentials.get(Tt(e));
2702
+ return t.next = 2, navigator.credentials.get(At(e));
2703
2703
  case 2:
2704
- return r = t.sent, t.abrupt("return", At(r));
2704
+ return r = t.sent, t.abrupt("return", Tt(r));
2705
2705
  case 4:
2706
2706
  case "end":
2707
2707
  return t.stop();
@@ -2719,7 +2719,7 @@ var Dt = function () {
2719
2719
  key: "register",
2720
2720
  value: function value(e) {
2721
2721
  var t, r;
2722
- return Ae(this, void 0, void 0, _e().mark(function n() {
2722
+ return Te(this, void 0, void 0, _e().mark(function n() {
2723
2723
  var i, s, o, a, c;
2724
2724
  return _e().wrap(function (n) {
2725
2725
  for (;;) switch (n.prev = n.next) {
@@ -2736,7 +2736,7 @@ var Dt = function () {
2736
2736
  }
2737
2737
  });
2738
2738
  case 3:
2739
- return i = n.sent, s = i.public_key_credential_creation_options, o = JSON.parse(s), n.next = 8, Ct({
2739
+ return i = n.sent, s = i.public_key_credential_creation_options, o = JSON.parse(s), n.next = 8, Ot({
2740
2740
  publicKey: o
2741
2741
  });
2742
2742
  case 8:
@@ -2770,7 +2770,7 @@ var Dt = function () {
2770
2770
  key: "authenticate",
2771
2771
  value: function value(e) {
2772
2772
  var t, r;
2773
- return Ae(this, void 0, void 0, _e().mark(function n() {
2773
+ return Te(this, void 0, void 0, _e().mark(function n() {
2774
2774
  var i, s, o, a, c, u, l, d, h, p, f, _;
2775
2775
  return _e().wrap(function (n) {
2776
2776
  for (;;) switch (n.prev = n.next) {
@@ -2844,7 +2844,7 @@ var Dt = function () {
2844
2844
  }, {
2845
2845
  key: "update",
2846
2846
  value: function value(e) {
2847
- return Ae(this, void 0, void 0, _e().mark(function t() {
2847
+ return Te(this, void 0, void 0, _e().mark(function t() {
2848
2848
  var r;
2849
2849
  return _e().wrap(function (t) {
2850
2850
  for (;;) switch (t.prev = t.next) {
@@ -2869,7 +2869,7 @@ var Dt = function () {
2869
2869
  }, {
2870
2870
  key: "browserSupportsAutofill",
2871
2871
  value: function value() {
2872
- return Ae(this, void 0, void 0, _e().mark(function e() {
2872
+ return Te(this, void 0, void 0, _e().mark(function e() {
2873
2873
  var t;
2874
2874
  return _e().wrap(function (e) {
2875
2875
  for (;;) switch (e.prev = e.next) {
@@ -2904,7 +2904,7 @@ var Dt = function () {
2904
2904
  return ve(e, [{
2905
2905
  key: "getCodeChallenge",
2906
2906
  value: function value() {
2907
- return Ae(this, void 0, void 0, _e().mark(function e() {
2907
+ return Te(this, void 0, void 0, _e().mark(function e() {
2908
2908
  var t, r;
2909
2909
  return _e().wrap(function (e) {
2910
2910
  for (;;) switch (e.prev = e.next) {
@@ -2938,7 +2938,7 @@ var Dt = function () {
2938
2938
  }, {
2939
2939
  key: "create",
2940
2940
  value: function value(e) {
2941
- return Ae(this, void 0, void 0, _e().mark(function t() {
2941
+ return Te(this, void 0, void 0, _e().mark(function t() {
2942
2942
  var r, n, i, s;
2943
2943
  return _e().wrap(function (t) {
2944
2944
  for (;;) switch (t.prev = t.next) {
@@ -2978,7 +2978,7 @@ var Dt = function () {
2978
2978
  }, {
2979
2979
  key: "authenticate",
2980
2980
  value: function value(e) {
2981
- return Ae(this, void 0, void 0, _e().mark(function t() {
2981
+ return Te(this, void 0, void 0, _e().mark(function t() {
2982
2982
  var r, n, i, s;
2983
2983
  return _e().wrap(function (t) {
2984
2984
  for (;;) switch (t.prev = t.next) {
@@ -3018,7 +3018,7 @@ var Dt = function () {
3018
3018
  }, {
3019
3019
  key: "resetByEmailStart",
3020
3020
  value: function value(e) {
3021
- return Ae(this, void 0, void 0, _e().mark(function t() {
3021
+ return Te(this, void 0, void 0, _e().mark(function t() {
3022
3022
  var r, n, i, s;
3023
3023
  return _e().wrap(function (t) {
3024
3024
  for (;;) switch (t.prev = t.next) {
@@ -3053,7 +3053,7 @@ var Dt = function () {
3053
3053
  }, {
3054
3054
  key: "resetByEmail",
3055
3055
  value: function value(e) {
3056
- return Ae(this, void 0, void 0, _e().mark(function t() {
3056
+ return Te(this, void 0, void 0, _e().mark(function t() {
3057
3057
  var r, n, i, s, o, a;
3058
3058
  return _e().wrap(function (t) {
3059
3059
  for (;;) switch (t.prev = t.next) {
@@ -3096,7 +3096,7 @@ var Dt = function () {
3096
3096
  }, {
3097
3097
  key: "resetByExistingPassword",
3098
3098
  value: function value(e) {
3099
- return Ae(this, void 0, void 0, _e().mark(function t() {
3099
+ return Te(this, void 0, void 0, _e().mark(function t() {
3100
3100
  var r, n, i, s;
3101
3101
  return _e().wrap(function (t) {
3102
3102
  for (;;) switch (t.prev = t.next) {
@@ -3137,7 +3137,7 @@ var Dt = function () {
3137
3137
  }, {
3138
3138
  key: "resetBySession",
3139
3139
  value: function value(e) {
3140
- return Ae(this, void 0, void 0, _e().mark(function t() {
3140
+ return Te(this, void 0, void 0, _e().mark(function t() {
3141
3141
  var r, n, i, s;
3142
3142
  return _e().wrap(function (t) {
3143
3143
  for (;;) switch (t.prev = t.next) {
@@ -3176,7 +3176,7 @@ var Dt = function () {
3176
3176
  }, {
3177
3177
  key: "strengthCheck",
3178
3178
  value: function value(e) {
3179
- return Ae(this, void 0, void 0, _e().mark(function t() {
3179
+ return Te(this, void 0, void 0, _e().mark(function t() {
3180
3180
  return _e().wrap(function (t) {
3181
3181
  for (;;) switch (t.prev = t.next) {
3182
3182
  case 0:
@@ -3222,7 +3222,7 @@ var Ft = function () {
3222
3222
  }, {
3223
3223
  key: "call",
3224
3224
  value: function value(e, t) {
3225
- return Ae(this, void 0, void 0, _e().mark(function r() {
3225
+ return Te(this, void 0, void 0, _e().mark(function r() {
3226
3226
  var n,
3227
3227
  i,
3228
3228
  s = this;
@@ -3253,19 +3253,26 @@ var Ft = function () {
3253
3253
  }]), e;
3254
3254
  }(),
3255
3255
  jt = function () {
3256
- function e(t) {
3257
- ge(this, e), this._networkClient = t;
3256
+ function e(t, r) {
3257
+ ge(this, e), this._networkClient = t, this.dfpProtectedAuth = r;
3258
3258
  }
3259
3259
  return ve(e, [{
3260
3260
  key: "searchUser",
3261
3261
  value: function value(e) {
3262
- return this._networkClient.fetchSDK({
3263
- url: "/users/search",
3264
- method: "POST",
3265
- body: {
3266
- email: e
3267
- },
3268
- errorMessage: "Error searching for user ".concat(e)
3262
+ var t = this;
3263
+ return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha().then(function (r) {
3264
+ var n = r.dfp_telemetry_id,
3265
+ i = r.captcha_token;
3266
+ return t._networkClient.fetchSDK({
3267
+ url: "/users/search",
3268
+ method: "POST",
3269
+ body: {
3270
+ email: e,
3271
+ dfp_telemetry_id: n,
3272
+ captcha_token: i
3273
+ },
3274
+ errorMessage: "Error searching for user ".concat(e)
3275
+ });
3269
3276
  });
3270
3277
  }
3271
3278
  }, {
@@ -3301,7 +3308,7 @@ var Ft = function () {
3301
3308
  ge(this, e), this._subscriptionService = t, this._headlessSessionClient = r, this._onDataChange = function (e) {
3302
3309
  (null == e ? void 0 : e.session) ? n.scheduleBackgroundRefresh() : n.cancelBackgroundRefresh();
3303
3310
  }, this._reauthenticateWithBackoff = function () {
3304
- return Ae(n, void 0, void 0, _e().mark(function t() {
3311
+ return Te(n, void 0, void 0, _e().mark(function t() {
3305
3312
  var r;
3306
3313
  return _e().wrap(function (t) {
3307
3314
  for (;;) switch (t.prev = t.next) {
@@ -3365,7 +3372,7 @@ var Ft = function () {
3365
3372
  }, {
3366
3373
  key: "isUnrecoverableError",
3367
3374
  value: function value(e) {
3368
- return C.includes(e.error_type);
3375
+ return O.includes(e.error_type);
3369
3376
  }
3370
3377
  }]), e;
3371
3378
  }();
@@ -3690,7 +3697,7 @@ var Wt = /*#__PURE__*/function () {
3690
3697
  },
3691
3698
  sdk: {
3692
3699
  identifier: "Stytch.js Javascript SDK",
3693
- version: "4.7.1"
3700
+ version: "4.7.3"
3694
3701
  }
3695
3702
  });
3696
3703
  }
@@ -3746,7 +3753,7 @@ var Wt = /*#__PURE__*/function () {
3746
3753
  o = e.xSDKParentHostHeader,
3747
3754
  a = e.body,
3748
3755
  c = e.retryCallback;
3749
- return Ae(this, void 0, void 0, _e().mark(function e() {
3756
+ return Te(this, void 0, void 0, _e().mark(function e() {
3750
3757
  var u;
3751
3758
  return _e().wrap(function (e) {
3752
3759
  for (;;) switch (e.prev = e.next) {
@@ -3858,7 +3865,7 @@ var Gt = /*#__PURE__*/function () {
3858
3865
  key: "styleFrame",
3859
3866
  value: function styleFrame(e) {
3860
3867
  e.position === exports.OneTapPositions.embedded && Array.from(document.getElementsByTagName("iframe")).forEach(function (e) {
3861
- e.src.includes(Oe) && (e.style.width = "100%");
3868
+ e.src.includes(Ce) && (e.style.width = "100%");
3862
3869
  });
3863
3870
  }
3864
3871
  }]);
@@ -3936,7 +3943,7 @@ var Ht = /*#__PURE__*/function () {
3936
3943
  _context8.t1 = !0;
3937
3944
  _context8.t2 = Gt;
3938
3945
  _context8.next = 16;
3939
- return Ke(Ce, function () {
3946
+ return Ke(Oe, function () {
3940
3947
  return window.google.accounts.id;
3941
3948
  });
3942
3949
  case 16:
@@ -4508,7 +4515,7 @@ var cr = /*#__PURE__*/function (_ar) {
4508
4515
  return _createClass(cr);
4509
4516
  }(ar);
4510
4517
  var ur = Symbol["for"]("stytch__internal_b2c");
4511
- exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, exports.ChallengeSigningFailedError = Y, exports.DeviceCredentialsNotAllowedError = q, exports.FailedCodeChallengeError = $, exports.FailedToDecryptDataError = Z, exports.InternalError = F, exports.InvalidAuthorizationCredentialError = z, exports.InvalidCredentialTypeError = ne, exports.InvalidRedirectSchemeError = te, exports.InvalidStartUrlError = ee, exports.JSONDataNotConvertibleToStringError = se, exports.KeyInvalidatedError = L, exports.KeystoreUnavailableError = M, exports.MissingAttestationObjectError = ie, exports.MissingAuthorizationCredentialIDTokenError = H, exports.MissingGoogleClientIDError = W, exports.MissingPKCEError = G, exports.MissingPublicKeyError = V, exports.MissingUrlError = re, exports.NoBiometricsEnrolledError = U, exports.NoBiometricsRegistrationError = j, exports.NoCurrentSessionError = I, exports.PasskeysInvalidEncoding = ae, exports.PasskeysMisconfigured = ce, exports.PasskeysUnsupportedError = X, exports.RandomNumberGenerationFailed = oe, exports.SDKAPIUnreachableError = S, exports.SDKNotConfiguredError = J, exports.SignInWithAppleMisconfigured = ue, exports.StytchAPIError = D, exports.StytchAPISchemaError = E, exports.StytchAPIUnreachableError = A, exports.StytchError = T, exports.StytchHeadlessClient = /*#__PURE__*/function () {
4518
+ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, exports.ChallengeSigningFailedError = Y, exports.DeviceCredentialsNotAllowedError = q, exports.FailedCodeChallengeError = $, exports.FailedToDecryptDataError = Z, exports.InternalError = F, exports.InvalidAuthorizationCredentialError = z, exports.InvalidCredentialTypeError = ne, exports.InvalidRedirectSchemeError = te, exports.InvalidStartUrlError = ee, exports.JSONDataNotConvertibleToStringError = se, exports.KeyInvalidatedError = L, exports.KeystoreUnavailableError = M, exports.MissingAttestationObjectError = ie, exports.MissingAuthorizationCredentialIDTokenError = H, exports.MissingGoogleClientIDError = W, exports.MissingPKCEError = G, exports.MissingPublicKeyError = V, exports.MissingUrlError = re, exports.NoBiometricsEnrolledError = U, exports.NoBiometricsRegistrationError = j, exports.NoCurrentSessionError = I, exports.PasskeysInvalidEncoding = ae, exports.PasskeysMisconfigured = ce, exports.PasskeysUnsupportedError = X, exports.RandomNumberGenerationFailed = oe, exports.SDKAPIUnreachableError = S, exports.SDKNotConfiguredError = J, exports.SignInWithAppleMisconfigured = ue, exports.StytchAPIError = D, exports.StytchAPISchemaError = E, exports.StytchAPIUnreachableError = T, exports.StytchError = A, exports.StytchHeadlessClient = /*#__PURE__*/function () {
4512
4519
  function _class(e, t) {
4513
4520
  var _this12 = this;
4514
4521
  _classCallCheck(this, _class);
@@ -4543,7 +4550,7 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4543
4550
  g = new Ze(e, i.endpoints.dfpBackendURL, v.getAsync(), y.executeRecaptcha),
4544
4551
  b = new Kt(i.endpoints.clientsideServicesIframeURL),
4545
4552
  k = new Ht(e, b),
4546
- w = new jt(this._networkClient);
4553
+ w = new jt(this._networkClient, g);
4547
4554
  var S, x;
4548
4555
  this.user = new rt(this._networkClient, this._subscriptionService), this.session = new nt(this._networkClient, this._subscriptionService), this.magicLinks = new st(this._networkClient, this._subscriptionService, new Vt(this._dataLayer, "magic_links"), m, v.getAsync(), g), this.otps = new ot(this._networkClient, this._subscriptionService, y.executeRecaptcha, g), this.oauth = new qt(this._networkClient, this._subscriptionService, new Vt(this._dataLayer, "oauth"), v.getAsync(), {
4549
4556
  publicToken: e,
@@ -4568,7 +4575,7 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4568
4575
  }, Object.assign(S, _defineProperty({}, ur, x));
4569
4576
  }
4570
4577
  return _createClass(_class);
4571
- }(), exports.StytchSDKAPIError = O, exports.StytchSDKError = R, exports.StytchSDKSchemaError = P, exports.StytchSDKUsageError = x, exports.UNRECOVERABLE_ERROR_TYPES = C, exports.UserCancellationError = N, exports.UserLockedOutError = K, exports.errorToStytchError = function (e) {
4578
+ }(), exports.StytchSDKAPIError = C, exports.StytchSDKError = R, exports.StytchSDKSchemaError = P, exports.StytchSDKUsageError = x, exports.UNRECOVERABLE_ERROR_TYPES = O, exports.UserCancellationError = N, exports.UserLockedOutError = K, exports.errorToStytchError = function (e) {
4572
4579
  switch (e.message) {
4573
4580
  case "internal_error":
4574
4581
  return new F(e.message);