@stytch/vanilla-js 4.7.7 → 4.8.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.
@@ -137,7 +137,7 @@ function d(e) {
137
137
  var h, p, f, _, m, v, y;
138
138
  Object.defineProperty(exports, "__esModule", {
139
139
  value: !0
140
- }), exports.Products = void 0, (h = exports.Products || (exports.Products = {})).emailMagicLinks = "emailMagicLinks", h.oauth = "oauth", h.otp = "otp", h.crypto = "crypto", h.passwords = "passwords", h.passkeys = "passkeys", exports.OAuthProviders = void 0, (p = exports.OAuthProviders || (exports.OAuthProviders = {})).Google = "google", p.Microsoft = "microsoft", p.Apple = "apple", p.Github = "github", p.GitLab = "gitlab", p.Facebook = "facebook", p.Discord = "discord", p.Salesforce = "salesforce", p.Slack = "slack", p.Amazon = "amazon", p.Bitbucket = "bitbucket", p.LinkedIn = "linkedin", p.Coinbase = "coinbase", p.Twitch = "twitch", p.Twitter = "twitter", p.TikTok = "tiktok", p.Snapchat = "snapchat", p.Figma = "figma", p.Yahoo = "yahoo", exports.Wallets = void 0, (f = exports.Wallets || (exports.Wallets = {})).Vessel = "Vessel", f.Phantom = "Phantom", f.Metamask = "Metamask", f.Coinbase = "Coinbase", f.Binance = "Binance", f.GenericEthereumWallet = "Other Ethereum Wallet", f.GenericSolanaWallet = "Other Solana Wallet", exports.OneTapPositions = void 0, (_ = exports.OneTapPositions || (exports.OneTapPositions = {})).embedded = "embedded", _.floating = "floating", exports.OTPMethods = void 0, (m = exports.OTPMethods || (exports.OTPMethods = {})).SMS = "sms", m.WhatsApp = "whatsapp", m.Email = "email", exports.StytchEventType = void 0, (v = exports.StytchEventType || (exports.StytchEventType = {})).MagicLinkLoginOrCreateEvent = "MAGIC_LINK_LOGIN_OR_CREATE", v.OTPsLoginOrCreateEvent = "OTP_LOGIN_OR_CREATE", v.OTPsAuthenticate = "OTP_AUTHENTICATE", v.CryptoWalletAuthenticateStart = "CRYPTO_WALLET_AUTHENTICATE_START", v.CryptoWalletAuthenticate = "CRYPTO_WALLET_AUTHENTICATE", v.PasswordCreate = "PASSWORD_CREATE", v.PasswordAuthenticate = "PASSWORD_AUTHENTICATE", v.PasswordResetByEmailStart = "PASSWORD_RESET_BY_EMAIL_START", v.PasswordResetByEmail = "PASSWORD_RESET_BY_EMAIL", v.PasskeyRegister = "PASSKEY_REGISTER", v.PasskeyAuthenticate = "PASSKEY_AUTHENTICATE", v.PasskeySkip = "PASSKEY_SKIP", v.PasskeyDone = "PASSKEY_DONE", v.B2BMagicLinkEmailLoginOrSignup = "B2B_MAGIC_LINK_EMAIL_LOGIN_OR_SIGNUP", v.B2BMagicLinkAuthenticate = "B2B_MAGIC_LINK_AUTHENTICATE", v.B2BMagicLinkEmailDiscoverySend = "B2B_MAGIC_LINK_EMAIL_DISCOVERY_SEND", v.B2BMagicLinkDiscoveryAuthenticate = "B2B_MAGIC_LINK_DISCOVERY_AUTHENTICATE", v.B2BSSOStart = "B2B_SSO_START", v.B2BSSOAuthenticate = "B2B_SSO_AUTHENTICATE", v.B2BOAuthAuthenticate = "B2B_OAUTH_AUTHENTICATE", v.B2BOAuthDiscoveryAuthenticate = "B2B_OAUTH_DISCOVERY_AUTHENTICATE", v.B2BDiscoveryOrganizationsCreate = "B2B_DISCOVERY_ORGANIZATIONS_CREATE", v.B2BDiscoveryIntermediateSessionExchange = "B2B_DISCOVERY_INTERMEDIATE_SESSION_EXCHANGE", v.B2BPasswordAuthenticate = "B2B_PASSWORD_AUTHENTICATE", v.B2BPasswordResetByEmailStart = "B2B_PASSWORD_RESET_BY_EMAIL_START", v.B2BPasswordResetByEmail = "B2B_PASSWORD_RESET_BY_EMAIL", v.B2BPasswordResetBySession = "B2B_PASSWORD_RESET_BY_SESSION", v.B2BSMSOTPSend = "B2B_SMS_OTP_SEND", v.B2BSMSOTPAuthenticate = "B2B_SMS_OTP_AUTHENTICATE", v.B2BTOTPCreate = "B2B_TOTP_CREATE", v.B2BTOTPAuthenticate = "B2B_TOTP_AUTHENTICATE", v.B2BRecoveryCodesRecover = "B2B_RECOVERY_CODES_RECOVER", exports.RNUIProducts = void 0, (y = exports.RNUIProducts || (exports.RNUIProducts = {}))[y.emailMagicLinks = 0] = "emailMagicLinks", y[y.oauth = 1] = "oauth", y[y.otp = 2] = "otp", y[y.passwords = 3] = "passwords";
140
+ }), exports.Products = void 0, (h = exports.Products || (exports.Products = {})).emailMagicLinks = "emailMagicLinks", h.oauth = "oauth", h.otp = "otp", h.crypto = "crypto", h.passwords = "passwords", h.passkeys = "passkeys", exports.OAuthProviders = void 0, (p = exports.OAuthProviders || (exports.OAuthProviders = {})).Google = "google", p.Microsoft = "microsoft", p.Apple = "apple", p.Github = "github", p.GitLab = "gitlab", p.Facebook = "facebook", p.Discord = "discord", p.Salesforce = "salesforce", p.Slack = "slack", p.Amazon = "amazon", p.Bitbucket = "bitbucket", p.LinkedIn = "linkedin", p.Coinbase = "coinbase", p.Twitch = "twitch", p.Twitter = "twitter", p.TikTok = "tiktok", p.Snapchat = "snapchat", p.Figma = "figma", p.Yahoo = "yahoo", exports.Wallets = void 0, (f = exports.Wallets || (exports.Wallets = {})).Vessel = "Vessel", f.Phantom = "Phantom", f.Metamask = "Metamask", f.Coinbase = "Coinbase", f.Binance = "Binance", f.GenericEthereumWallet = "Other Ethereum Wallet", f.GenericSolanaWallet = "Other Solana Wallet", exports.OneTapPositions = void 0, (_ = exports.OneTapPositions || (exports.OneTapPositions = {})).embedded = "embedded", _.floating = "floating", _.embeddedOnly = "embeddedOnly", _.floatingOrEmbedded = "floatingOrEmbedded", _.forceLegacyEmbedded = "forceLegacyEmbedded", exports.OTPMethods = void 0, (m = exports.OTPMethods || (exports.OTPMethods = {})).SMS = "sms", m.WhatsApp = "whatsapp", m.Email = "email", exports.StytchEventType = void 0, (v = exports.StytchEventType || (exports.StytchEventType = {})).MagicLinkLoginOrCreateEvent = "MAGIC_LINK_LOGIN_OR_CREATE", v.OTPsLoginOrCreateEvent = "OTP_LOGIN_OR_CREATE", v.OTPsAuthenticate = "OTP_AUTHENTICATE", v.CryptoWalletAuthenticateStart = "CRYPTO_WALLET_AUTHENTICATE_START", v.CryptoWalletAuthenticate = "CRYPTO_WALLET_AUTHENTICATE", v.PasswordCreate = "PASSWORD_CREATE", v.PasswordAuthenticate = "PASSWORD_AUTHENTICATE", v.PasswordResetByEmailStart = "PASSWORD_RESET_BY_EMAIL_START", v.PasswordResetByEmail = "PASSWORD_RESET_BY_EMAIL", v.PasskeyRegister = "PASSKEY_REGISTER", v.PasskeyAuthenticate = "PASSKEY_AUTHENTICATE", v.PasskeySkip = "PASSKEY_SKIP", v.PasskeyDone = "PASSKEY_DONE", v.B2BMagicLinkEmailLoginOrSignup = "B2B_MAGIC_LINK_EMAIL_LOGIN_OR_SIGNUP", v.B2BMagicLinkAuthenticate = "B2B_MAGIC_LINK_AUTHENTICATE", v.B2BMagicLinkEmailDiscoverySend = "B2B_MAGIC_LINK_EMAIL_DISCOVERY_SEND", v.B2BMagicLinkDiscoveryAuthenticate = "B2B_MAGIC_LINK_DISCOVERY_AUTHENTICATE", v.B2BSSOStart = "B2B_SSO_START", v.B2BSSOAuthenticate = "B2B_SSO_AUTHENTICATE", v.B2BOAuthAuthenticate = "B2B_OAUTH_AUTHENTICATE", v.B2BOAuthDiscoveryAuthenticate = "B2B_OAUTH_DISCOVERY_AUTHENTICATE", v.B2BDiscoveryOrganizationsCreate = "B2B_DISCOVERY_ORGANIZATIONS_CREATE", v.B2BDiscoveryIntermediateSessionExchange = "B2B_DISCOVERY_INTERMEDIATE_SESSION_EXCHANGE", v.B2BPasswordAuthenticate = "B2B_PASSWORD_AUTHENTICATE", v.B2BPasswordResetByEmailStart = "B2B_PASSWORD_RESET_BY_EMAIL_START", v.B2BPasswordResetByEmail = "B2B_PASSWORD_RESET_BY_EMAIL", v.B2BPasswordResetBySession = "B2B_PASSWORD_RESET_BY_SESSION", v.B2BSMSOTPSend = "B2B_SMS_OTP_SEND", v.B2BSMSOTPAuthenticate = "B2B_SMS_OTP_AUTHENTICATE", v.B2BTOTPCreate = "B2B_TOTP_CREATE", v.B2BTOTPAuthenticate = "B2B_TOTP_AUTHENTICATE", v.B2BRecoveryCodesRecover = "B2B_RECOVERY_CODES_RECOVER", exports.RNUIProducts = void 0, (y = exports.RNUIProducts || (exports.RNUIProducts = {}))[y.emailMagicLinks = 0] = "emailMagicLinks", y[y.oauth = 1] = "oauth", y[y.otp = 2] = "otp", y[y.passwords = 3] = "passwords";
141
141
  var g,
142
142
  b,
143
143
  k,
@@ -167,7 +167,7 @@ var g,
167
167
  }
168
168
  return a(t, c(Error)), r(t);
169
169
  }(),
170
- C = function (e) {
170
+ O = 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
- O = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"],
184
- A = function (e) {
183
+ C = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"],
184
+ T = 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
- T = function (e) {
191
+ A = 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, A), r(t);
196
+ return a(t, T), 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, A), r(t);
207
+ return a(t, T), 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, A), r(t);
220
+ return a(t, T), 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, A), r(t);
227
+ return a(t, T), r(t);
228
228
  }(),
229
229
  I = function (e) {
230
230
  function t() {
@@ -262,13 +262,13 @@ var g,
262
262
  }
263
263
  return a(t, R), r(t);
264
264
  }(),
265
- U = function (e) {
265
+ N = function (e) {
266
266
  function t() {
267
267
  return i(this, t), s(this, t, ["NoBiometricsEnrolledError", "There is no biometric factor enrolled on the device. Add a biometric factor in the device settings."]);
268
268
  }
269
269
  return a(t, R), r(t);
270
270
  }(),
271
- N = function (e) {
271
+ U = function (e) {
272
272
  function t() {
273
273
  return i(this, t), s(this, t, ["UserCancellationError", "The user canceled the prompt. Ask the user to try again."]);
274
274
  }
@@ -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: C(e, r, a)
551
+ value: O(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 C(t, r, n) {
621
+ function O(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 = O(a, n);
635
+ var c = C(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 O(t, r) {
658
+ function C(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, O(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, C(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 A(e) {
667
+ function T(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 T(e) {
673
+ function A(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(A, this), this.reset(!0);
680
+ }], e.forEach(T, 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(T), !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(A), !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), T(r), m;
791
+ if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), A(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
- T(r);
801
+ A(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
- Ce = "https://accounts.google.com/gsi",
909
- Oe = "".concat(Ce, "/client");
910
- function Ae(e, t) {
908
+ Oe = "https://accounts.google.com/gsi",
909
+ Ce = "".concat(Oe, "/client");
910
+ function Te(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 Ae(e, t) {
916
916
  }
917
917
  return r;
918
918
  }
919
- function Te(e, t, r, n) {
919
+ function Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
974
+ return Ae(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 T("Unable to contact the Stytch servers. Are you online?");
996
+ throw new A("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 T("Invalid JSON response from the Stytch servers.");
1008
+ throw e.prev = 22, e.t1 = e["catch"](15), new A("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 T("Invalid or no response from server");
1019
+ throw e.prev = 32, e.t2 = e["catch"](26), new A("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 T("Invalid response from the Stytch servers.");
1034
+ throw e.prev = 44, e.t3 = e["catch"](38), new A("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 T("Invalid response from the Stytch servers.");
1042
+ throw new A("Invalid response from the Stytch servers.");
1043
1043
  case 50:
1044
1044
  case "end":
1045
1045
  return e.stop();
@@ -1062,7 +1062,7 @@ function Me(e) {
1062
1062
  }(r)) throw TypeError("Stringified UUID is invalid");
1063
1063
  return r;
1064
1064
  }
1065
- function Ue(e, t, r) {
1065
+ function Ne(e, t, r) {
1066
1066
  var n = (e = e || {}).random || (e.rng || Fe)();
1067
1067
  if (n[6] = 15 & n[6] | 64, n[8] = 63 & n[8] | 128, t) {
1068
1068
  r = r || 0;
@@ -1071,19 +1071,19 @@ function Ue(e, t, r) {
1071
1071
  }
1072
1072
  return Me(n);
1073
1073
  }
1074
- var Ne = {};
1074
+ var Ue = {};
1075
1075
  function Ke(e, t) {
1076
- return Te(this, void 0, void 0, _e().mark(function r() {
1076
+ return Ae(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:
1080
- if (void 0 === Ne[e]) {
1080
+ if (void 0 === Ue[e]) {
1081
1081
  r.next = 2;
1082
1082
  break;
1083
1083
  }
1084
- return r.abrupt("return", Ne[e]);
1084
+ return r.abrupt("return", Ue[e]);
1085
1085
  case 2:
1086
- return Ne[e] = qe(e, t), r.abrupt("return", Ne[e]);
1086
+ return Ue[e] = qe(e, t), r.abrupt("return", Ue[e]);
1087
1087
  case 4:
1088
1088
  case "end":
1089
1089
  return r.stop();
@@ -1185,10 +1185,10 @@ var Ge,
1185
1185
  return t;
1186
1186
  },
1187
1187
  $e = function $e(e) {
1188
- return Ae(e, ["request_id", "status_code"]);
1188
+ return Te(e, ["request_id", "status_code"]);
1189
1189
  },
1190
1190
  Xe = function Xe(e) {
1191
- return Ae(e, ["__user"]);
1191
+ return Te(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 Te(i, void 0, void 0, _e().mark(function e() {
1199
+ return Ae(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 Te(i, void 0, void 0, _e().mark(function e() {
1213
+ return Ae(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 Te(i, void 0, void 0, _e().mark(function e() {
1236
+ return Ae(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 Te(i, void 0, void 0, _e().mark(function r() {
1281
+ return Ae(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 Te(i, void 0, void 0, _e().mark(function n() {
1312
+ return Ae(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 Te(void 0, void 0, void 0, _e().mark(function e() {
1351
+ return Ae(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 Te(void 0, void 0, void 0, _e().mark(function e() {
1364
+ return Ae(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 Te(void 0, void 0, void 0, _e().mark(function e() {
1377
+ return Ae(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 Te(void 0, void 0, void 0, _e().mark(function e() {
1393
+ return Ae(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(T, t);
1435
+ return e.inflate(A, t);
1436
1436
  case "StytchAPISchemaError":
1437
1437
  return e.inflate(E, t);
1438
1438
  case "StytchSDKAPIError":
1439
- return e.inflate(C, t);
1439
+ return e.inflate(O, 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 Te(this, void 0, void 0, _e().mark(function e() {
1474
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function e() {
1512
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1533
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1553
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1572
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1591
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1610
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1629
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1648
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function t() {
1686
+ return Ae(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) || O.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) || C.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 Te(n, void 0, void 0, _e().mark(function t() {
1707
+ return Ae(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 O.includes(t.t0.error_type) && this._subscriptionService.destroySession(), t.t0;
1750
+ throw C.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 Te(s, void 0, void 0, _e().mark(function r() {
1782
+ return Ae(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 Te(s, void 0, void 0, _e().mark(function r() {
1820
+ return Ae(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 Te(s, void 0, void 0, _e().mark(function r() {
1857
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
1914
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function r() {
1940
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
1974
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
2000
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
2027
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
2053
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
2080
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function r() {
2104
+ return Ae(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 Te(n, void 0, void 0, _e().mark(function n() {
2128
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function r() {
2210
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
2246
+ return Ae(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 Te(t, void 0, void 0, _e().mark(function t() {
2283
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2335
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2362
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2409
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2434
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
2473
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2492
+ return Ae(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 Ct(e) {
2671
+ function Ot(e) {
2672
2672
  return ft(dt, wt, e);
2673
2673
  }
2674
- function Ot(e) {
2675
- return Te(this, void 0, void 0, _e().mark(function t() {
2674
+ function Ct(e) {
2675
+ return Ae(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", Ct(r));
2682
+ return r = t.sent, t.abrupt("return", Ot(r));
2683
2683
  case 4:
2684
2684
  case "end":
2685
2685
  return t.stop();
@@ -2687,21 +2687,21 @@ function Ot(e) {
2687
2687
  }, t);
2688
2688
  }));
2689
2689
  }
2690
- function At(e) {
2690
+ function Tt(e) {
2691
2691
  return ft(lt, St, e);
2692
2692
  }
2693
- function Tt(e) {
2693
+ function At(e) {
2694
2694
  return ft(dt, xt, e);
2695
2695
  }
2696
2696
  function Et(e) {
2697
- return Te(this, void 0, void 0, _e().mark(function t() {
2697
+ return Ae(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(At(e));
2702
+ return t.next = 2, navigator.credentials.get(Tt(e));
2703
2703
  case 2:
2704
- return r = t.sent, t.abrupt("return", Tt(r));
2704
+ return r = t.sent, t.abrupt("return", At(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 Te(this, void 0, void 0, _e().mark(function n() {
2722
+ return Ae(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, Ot({
2739
+ return i = n.sent, s = i.public_key_credential_creation_options, o = JSON.parse(s), n.next = 8, Ct({
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 Te(this, void 0, void 0, _e().mark(function n() {
2773
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2847
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
2872
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function e() {
2907
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2941
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
2981
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
3021
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
3056
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
3099
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
3140
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function t() {
3179
+ return Ae(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 Te(this, void 0, void 0, _e().mark(function r() {
3225
+ return Ae(this, void 0, void 0, _e().mark(function r() {
3226
3226
  var n,
3227
3227
  i,
3228
3228
  s = this;
@@ -3308,7 +3308,7 @@ var Ft = function () {
3308
3308
  ge(this, e), this._subscriptionService = t, this._headlessSessionClient = r, this._onDataChange = function (e) {
3309
3309
  (null == e ? void 0 : e.session) ? n.scheduleBackgroundRefresh() : n.cancelBackgroundRefresh();
3310
3310
  }, this._reauthenticateWithBackoff = function () {
3311
- return Te(n, void 0, void 0, _e().mark(function t() {
3311
+ return Ae(n, void 0, void 0, _e().mark(function t() {
3312
3312
  var r;
3313
3313
  return _e().wrap(function (t) {
3314
3314
  for (;;) switch (t.prev = t.next) {
@@ -3372,7 +3372,7 @@ var Ft = function () {
3372
3372
  }, {
3373
3373
  key: "isUnrecoverableError",
3374
3374
  value: function value(e) {
3375
- return O.includes(e.error_type);
3375
+ return C.includes(e.error_type);
3376
3376
  }
3377
3377
  }]), e;
3378
3378
  }();
@@ -3484,7 +3484,7 @@ var Mt = /*#__PURE__*/function () {
3484
3484
  }]);
3485
3485
  return Mt;
3486
3486
  }();
3487
- function Ut(e, t, r, n) {
3487
+ function Nt(e, t, r, n) {
3488
3488
  return new (r || (r = Promise))(function (i, s) {
3489
3489
  function o(e) {
3490
3490
  try {
@@ -3510,11 +3510,11 @@ function Ut(e, t, r, n) {
3510
3510
  });
3511
3511
  }
3512
3512
  "function" == typeof SuppressedError && SuppressedError;
3513
- var Nt = /*#__PURE__*/_createClass(function Nt(e) {
3513
+ var Ut = /*#__PURE__*/_createClass(function Ut(e) {
3514
3514
  var _this2 = this;
3515
- _classCallCheck(this, Nt);
3515
+ _classCallCheck(this, Ut);
3516
3516
  this.bootstrapPromise = e, this.executeRecaptcha = function () {
3517
- return Ut(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3517
+ return Nt(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3518
3518
  var _yield$this$state, e, t, r;
3519
3519
  return _regeneratorRuntime().wrap(function _callee$(_context) {
3520
3520
  while (1) switch (_context.prev = _context.next) {
@@ -3545,7 +3545,7 @@ var Nt = /*#__PURE__*/_createClass(function Nt(e) {
3545
3545
  }, _callee, this);
3546
3546
  }));
3547
3547
  }, this.state = e.then(function (e) {
3548
- return Ut(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
3548
+ return Nt(_this2, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
3549
3549
  var t;
3550
3550
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3551
3551
  while (1) switch (_context2.prev = _context2.next) {
@@ -3615,7 +3615,7 @@ var qt = /*#__PURE__*/function (_at) {
3615
3615
  var _this4;
3616
3616
  _classCallCheck(this, qt);
3617
3617
  _this4 = _callSuper(this, qt, [e, t, r, n, i]), _this4._oneTap = s, _this4.startOneTap = function (e) {
3618
- return Ut(_assertThisInitialized(_this4), void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
3618
+ return Nt(_assertThisInitialized(_this4), void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
3619
3619
  var t, r, n;
3620
3620
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3621
3621
  while (1) switch (_context3.prev = _context3.next) {
@@ -3686,9 +3686,9 @@ var Wt = /*#__PURE__*/function () {
3686
3686
  key: "createTelemetryBlob",
3687
3687
  value: function createTelemetryBlob() {
3688
3688
  return Object.assign(Object.assign({
3689
- event_id: "event-id-".concat(Ue()),
3690
- app_session_id: "app-session-id-".concat(Ue()),
3691
- persistent_id: "persistent-id-".concat(Ue()),
3689
+ event_id: "event-id-".concat(Ne()),
3690
+ app_session_id: "app-session-id-".concat(Ne()),
3691
+ persistent_id: "persistent-id-".concat(Ne()),
3692
3692
  client_sent_at: new Date().toISOString(),
3693
3693
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
3694
3694
  }, this.additionalTelemetryDataFn()), {
@@ -3697,7 +3697,7 @@ var Wt = /*#__PURE__*/function () {
3697
3697
  },
3698
3698
  sdk: {
3699
3699
  identifier: "Stytch.js Javascript SDK",
3700
- version: "4.7.7"
3700
+ version: "4.8.0"
3701
3701
  }
3702
3702
  });
3703
3703
  }
@@ -3708,7 +3708,7 @@ var Wt = /*#__PURE__*/function () {
3708
3708
  t = _ref2.body,
3709
3709
  r = _ref2.errorMessage,
3710
3710
  n = _ref2.method;
3711
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
3711
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
3712
3712
  var i, s, o, a;
3713
3713
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3714
3714
  while (1) switch (_context4.prev = _context4.next) {
@@ -3738,7 +3738,7 @@ var Wt = /*#__PURE__*/function () {
3738
3738
  r = _ref3.errorMessage,
3739
3739
  n = _ref3.method,
3740
3740
  i = _ref3.retryCallback;
3741
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
3741
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
3742
3742
  var s, o, a, c;
3743
3743
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3744
3744
  while (1) switch (_context5.prev = _context5.next) {
@@ -3753,7 +3753,7 @@ var Wt = /*#__PURE__*/function () {
3753
3753
  o = e.xSDKParentHostHeader,
3754
3754
  a = e.body,
3755
3755
  c = e.retryCallback;
3756
- return Te(this, void 0, void 0, _e().mark(function e() {
3756
+ return Ae(this, void 0, void 0, _e().mark(function e() {
3757
3757
  var u;
3758
3758
  return _e().wrap(function (e) {
3759
3759
  for (;;) switch (e.prev = e.next) {
@@ -3811,12 +3811,16 @@ var Wt = /*#__PURE__*/function () {
3811
3811
  }]);
3812
3812
  return Wt;
3813
3813
  }();
3814
- var Gt = /*#__PURE__*/function () {
3815
- function Gt(e, t, r) {
3816
- _classCallCheck(this, Gt);
3814
+ var Gt = "undefined" != typeof window && "IdentityCredential" in window,
3815
+ Ht = function Ht(e) {
3816
+ return e === exports.OneTapPositions.forceLegacyEmbedded ? "force" : e === exports.OneTapPositions.embeddedOnly || e === exports.OneTapPositions.embedded || e === exports.OneTapPositions.floatingOrEmbedded;
3817
+ };
3818
+ var zt = /*#__PURE__*/function () {
3819
+ function zt(e, t, r) {
3820
+ _classCallCheck(this, zt);
3817
3821
  this._googleClient = e, this._publicToken = t, this._clientId = r;
3818
3822
  }
3819
- _createClass(Gt, [{
3823
+ _createClass(zt, [{
3820
3824
  key: "cancel",
3821
3825
  value: function cancel() {
3822
3826
  this._googleClient.cancel();
@@ -3827,29 +3831,37 @@ var Gt = /*#__PURE__*/function () {
3827
3831
  var e = _ref4.callback,
3828
3832
  t = _ref4.onOneTapCancelled,
3829
3833
  r = _ref4.style;
3830
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
3834
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
3831
3835
  var _this5 = this;
3832
- var n;
3836
+ var n, i, s;
3833
3837
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
3834
3838
  while (1) switch (_context6.prev = _context6.next) {
3835
3839
  case 0:
3836
- n = {
3840
+ n = Ht(r.position), i = function (e) {
3841
+ var t = Ht(e);
3842
+ return "force" === t || t && !Gt;
3843
+ }(r.position), s = {
3837
3844
  client_id: this._clientId,
3838
3845
  callback: e,
3839
3846
  auto_select: !1,
3840
3847
  context: "use",
3841
3848
  itp_support: !0,
3842
- use_fedcm_for_prompt: !1
3849
+ use_fedcm_for_prompt: "force" !== n
3843
3850
  };
3844
- return _context6.abrupt("return", (r.position === exports.OneTapPositions.embedded && (n.prompt_parent_id = "google-parent-prompt", n.cancel_on_tap_outside = !1), this._googleClient.initialize(n), new Promise(function (e) {
3845
- _this5._googleClient.prompt(function (n) {
3846
- return n.isSkippedMoment() ? ("user_cancel" === n.getSkippedReason() && (null == t || t()), e({
3847
- success: !1,
3848
- reason: n.getSkippedReason()
3849
- })) : n.isNotDisplayed() ? e({
3851
+ return _context6.abrupt("return", (i && (s.prompt_parent_id = "google-parent-prompt", s.cancel_on_tap_outside = !1), this._googleClient.initialize(s), new Promise(function (e) {
3852
+ _this5._googleClient.prompt(function (r) {
3853
+ var n, s, o, a, c;
3854
+ if (r.isSkippedMoment()) {
3855
+ var _i = null !== (s = null === (n = r.getSkippedReason) || void 0 === n ? void 0 : n.call(r)) && void 0 !== s ? s : "unknown_reason";
3856
+ return "user_cancel" === _i && (null == t || t()), e({
3857
+ success: !1,
3858
+ reason: _i
3859
+ });
3860
+ }
3861
+ return !r.isNotDisplayed && i || (null === (o = r.isNotDisplayed) || void 0 === o ? void 0 : o.call(r)) ? e({
3850
3862
  success: !1,
3851
- reason: n.getNotDisplayedReason()
3852
- }) : (_this5.styleFrame(r), e({
3863
+ reason: null !== (c = null === (a = r.getNotDisplayedReason) || void 0 === a ? void 0 : a.call(r)) && void 0 !== c ? c : "unknown_reason"
3864
+ }) : r.isDismissedMoment() ? void 0 : (_this5.styleFrame(i), e({
3853
3865
  success: !0
3854
3866
  }));
3855
3867
  });
@@ -3864,23 +3876,23 @@ var Gt = /*#__PURE__*/function () {
3864
3876
  }, {
3865
3877
  key: "styleFrame",
3866
3878
  value: function styleFrame(e) {
3867
- e.position === exports.OneTapPositions.embedded && Array.from(document.getElementsByTagName("iframe")).forEach(function (e) {
3868
- e.src.includes(Ce) && (e.style.width = "100%");
3879
+ e && Array.from(document.getElementsByTagName("iframe")).forEach(function (e) {
3880
+ e.src.includes(Oe) && (e.style.width = "100%");
3869
3881
  });
3870
3882
  }
3871
3883
  }]);
3872
- return Gt;
3884
+ return zt;
3873
3885
  }();
3874
- var Ht = /*#__PURE__*/function () {
3875
- function Ht(e, t) {
3886
+ var Vt = /*#__PURE__*/function () {
3887
+ function Vt(e, t) {
3876
3888
  var _this6 = this;
3877
- _classCallCheck(this, Ht);
3889
+ _classCallCheck(this, Vt);
3878
3890
  this._publicToken = e, this.clientsideServices = t, this.createOnSuccessHandler = function (_ref5) {
3879
3891
  var e = _ref5.loginRedirectUrl,
3880
3892
  t = _ref5.signupRedirectUrl,
3881
3893
  r = _ref5.onSuccess;
3882
3894
  return function (n) {
3883
- return Ut(_this6, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
3895
+ return Nt(_this6, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
3884
3896
  var i, _yield$this$submitGoo, s;
3885
3897
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
3886
3898
  while (1) switch (_context7.prev = _context7.next) {
@@ -3907,10 +3919,10 @@ var Ht = /*#__PURE__*/function () {
3907
3919
  window.location.href = e;
3908
3920
  };
3909
3921
  }
3910
- _createClass(Ht, [{
3922
+ _createClass(Vt, [{
3911
3923
  key: "createOneTapClient",
3912
3924
  value: function createOneTapClient() {
3913
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
3925
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
3914
3926
  var e, _yield$this$fetchGoog;
3915
3927
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
3916
3928
  while (1) switch (_context8.prev = _context8.next) {
@@ -3941,9 +3953,9 @@ var Ht = /*#__PURE__*/function () {
3941
3953
  });
3942
3954
  case 12:
3943
3955
  _context8.t1 = !0;
3944
- _context8.t2 = Gt;
3956
+ _context8.t2 = zt;
3945
3957
  _context8.next = 16;
3946
- return Ke(Oe, function () {
3958
+ return Ke(Ce, function () {
3947
3959
  return window.google.accounts.id;
3948
3960
  });
3949
3961
  case 16:
@@ -3975,7 +3987,7 @@ var Ht = /*#__PURE__*/function () {
3975
3987
  var e = _ref6.credential,
3976
3988
  t = _ref6.loginRedirectUrl,
3977
3989
  r = _ref6.signupRedirectUrl;
3978
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
3990
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
3979
3991
  var _yield$this$fetchGoog2, n;
3980
3992
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
3981
3993
  while (1) switch (_context9.prev = _context9.next) {
@@ -4012,21 +4024,21 @@ var Ht = /*#__PURE__*/function () {
4012
4024
  }, {
4013
4025
  key: "WillGoogleOneTapShowEmbedded",
4014
4026
  value: function WillGoogleOneTapShowEmbedded() {
4015
- return !Ht.WillGoogleOneTapShowBannerForUA(navigator.userAgent);
4027
+ return !Vt.WillGoogleOneTapShowBannerForUA(navigator.userAgent);
4016
4028
  }
4017
4029
  }]);
4018
- return Ht;
4030
+ return Vt;
4019
4031
  }();
4020
- function zt(e) {
4032
+ function Yt(e) {
4021
4033
  var t = e.toString(16);
4022
4034
  return 1 === t.length && (t = "0" + t), t;
4023
4035
  }
4024
- var Vt = /*#__PURE__*/function () {
4025
- function Vt(e, t) {
4026
- _classCallCheck(this, Vt);
4036
+ var Jt = /*#__PURE__*/function () {
4037
+ function Jt(e, t) {
4038
+ _classCallCheck(this, Jt);
4027
4039
  this._dataLayer = e, this.namespace = t;
4028
4040
  }
4029
- _createClass(Vt, [{
4041
+ _createClass(Jt, [{
4030
4042
  key: "key",
4031
4043
  value: function key() {
4032
4044
  return "PKCE_VERIFIER:" + this.namespace;
@@ -4034,13 +4046,13 @@ var Vt = /*#__PURE__*/function () {
4034
4046
  }, {
4035
4047
  key: "startPKCETransaction",
4036
4048
  value: function startPKCETransaction() {
4037
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
4049
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
4038
4050
  var e;
4039
4051
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
4040
4052
  while (1) switch (_context10.prev = _context10.next) {
4041
4053
  case 0:
4042
4054
  _context10.next = 2;
4043
- return Vt.createProofkeyPair();
4055
+ return Jt.createProofkeyPair();
4044
4056
  case 2:
4045
4057
  e = _context10.sent;
4046
4058
  return _context10.abrupt("return", (this._dataLayer.setItem(this.key(), JSON.stringify(e)), e));
@@ -4069,7 +4081,7 @@ var Vt = /*#__PURE__*/function () {
4069
4081
  }], [{
4070
4082
  key: "createProofkeyPair",
4071
4083
  value: function createProofkeyPair() {
4072
- return Ut(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
4084
+ return Nt(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
4073
4085
  var _String$fromCharCode;
4074
4086
  var e, t, r, n;
4075
4087
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
@@ -4077,7 +4089,7 @@ var Vt = /*#__PURE__*/function () {
4077
4089
  case 0:
4078
4090
  e = new Uint32Array(16);
4079
4091
  window.crypto.getRandomValues(e);
4080
- t = Array.from(e).map(zt).join("");
4092
+ t = Array.from(e).map(Yt).join("");
4081
4093
  _context11.next = 5;
4082
4094
  return window.crypto.subtle.digest("SHA-256", new TextEncoder().encode(t));
4083
4095
  case 5:
@@ -4094,9 +4106,9 @@ var Vt = /*#__PURE__*/function () {
4094
4106
  }));
4095
4107
  }
4096
4108
  }]);
4097
- return Vt;
4109
+ return Jt;
4098
4110
  }();
4099
- var Yt = function Yt(e) {
4111
+ var $t = function $t(e) {
4100
4112
  return (document.cookie ? document.cookie.split("; ") : []).filter(function (t) {
4101
4113
  var _t$split = t.split("="),
4102
4114
  _t$split2 = _slicedToArray(_t$split, 1),
@@ -4105,17 +4117,17 @@ var Yt = function Yt(e) {
4105
4117
  }).length > 1;
4106
4118
  };
4107
4119
  /*! js-cookie v3.0.1 | MIT */
4108
- function Jt(e) {
4120
+ function Xt(e) {
4109
4121
  for (var t = 1; t < arguments.length; t++) {
4110
4122
  var r = arguments[t];
4111
4123
  for (var n in r) e[n] = r[n];
4112
4124
  }
4113
4125
  return e;
4114
4126
  }
4115
- var $t = function e(t, r) {
4127
+ var Zt = function e(t, r) {
4116
4128
  function n(e, n, i) {
4117
4129
  if ("undefined" != typeof document) {
4118
- "number" == typeof (i = Jt({}, r, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
4130
+ "number" == typeof (i = Xt({}, r, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), e = encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
4119
4131
  var s = "";
4120
4132
  for (var o in i) i[o] && (s += "; " + o, !0 !== i[o] && (s += "=" + i[o].split(";")[0]));
4121
4133
  return document.cookie = e + "=" + t.write(n, e) + s;
@@ -4137,15 +4149,15 @@ var $t = function e(t, r) {
4137
4149
  }
4138
4150
  },
4139
4151
  remove: function remove(e, t) {
4140
- n(e, "", Jt({}, t, {
4152
+ n(e, "", Xt({}, t, {
4141
4153
  expires: -1
4142
4154
  }));
4143
4155
  },
4144
4156
  withAttributes: function withAttributes(t) {
4145
- return e(this.converter, Jt({}, this.attributes, t));
4157
+ return e(this.converter, Xt({}, this.attributes, t));
4146
4158
  },
4147
4159
  withConverter: function withConverter(t) {
4148
- return e(Jt({}, this.converter, t), this.attributes);
4160
+ return e(Xt({}, this.converter, t), this.attributes);
4149
4161
  }
4150
4162
  }, {
4151
4163
  attributes: {
@@ -4165,37 +4177,37 @@ var $t = function e(t, r) {
4165
4177
  }, {
4166
4178
  path: "/"
4167
4179
  });
4168
- var Xt = function Xt(e) {
4180
+ var Qt = function Qt(e) {
4169
4181
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
4170
4182
  return "stytch_sdk_state_".concat(e).concat(t ? "::".concat(t) : "");
4171
4183
  },
4172
- Zt = new Map(),
4173
- Qt = function Qt(e) {
4174
- clearTimeout(Zt.get(e));
4184
+ er = new Map(),
4185
+ tr = function tr(e) {
4186
+ clearTimeout(er.get(e));
4175
4187
  },
4176
- er = function er(e, t, r) {
4177
- Qt(e);
4188
+ rr = function rr(e, t, r) {
4189
+ tr(e);
4178
4190
  var n = setTimeout(function () {
4179
- void 0 === $t.get(e) && $t.set(e, t, r);
4191
+ void 0 === Zt.get(e) && Zt.set(e, t, r);
4180
4192
  }, 10);
4181
- return Zt.set(e, n), $t.set(e, t, r);
4193
+ return er.set(e, n), Zt.set(e, t, r);
4182
4194
  };
4183
- var tr = /*#__PURE__*/function () {
4184
- function tr(e, t) {
4195
+ var nr = /*#__PURE__*/function () {
4196
+ function nr(e, t) {
4185
4197
  var _this7 = this;
4186
- _classCallCheck(this, tr);
4198
+ _classCallCheck(this, nr);
4187
4199
  this.browserSessionStorage = {
4188
4200
  getItem: function getItem(e) {
4189
- return sessionStorage.getItem(Xt(_this7.publicToken, e));
4201
+ return sessionStorage.getItem(Qt(_this7.publicToken, e));
4190
4202
  },
4191
4203
  setItem: function setItem(e, t) {
4192
- return sessionStorage.setItem(Xt(_this7.publicToken, e), t);
4204
+ return sessionStorage.setItem(Qt(_this7.publicToken, e), t);
4193
4205
  },
4194
4206
  removeItem: function removeItem(e) {
4195
- return sessionStorage.removeItem(Xt(_this7.publicToken, e));
4207
+ return sessionStorage.removeItem(Qt(_this7.publicToken, e));
4196
4208
  }
4197
4209
  }, this.publicToken = e, this.state = null, this.stateKeysUpdated = new Set(), this.subscriptions = {}, (null == t ? void 0 : t.cookieOptions) ? (Je("SubscriptionDataLayer").isOptionalString("cookieOptions.opaqueTokenCookieName", t.cookieOptions.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName", t.cookieOptions.jwtCookieName).isOptionalString("cookieOptions.istCookieName", t.cookieOptions.istCookieName).isOptionalString("cookieOptions.path", t.cookieOptions.path).isOptionalString("cookieOptions.domain", t.cookieOptions.domain), this._jwtCookieName = t.cookieOptions.jwtCookieName || null, this._opaqueTokenCookieName = t.cookieOptions.opaqueTokenCookieName || null, this._cookiePath = t.cookieOptions.path || null, this._domain = t.cookieOptions.domain || null, this._cookieAvailableToSubdomains = t.cookieOptions.availableToSubdomains || !1, this._istCookieName = t.cookieOptions.istCookieName || null) : (this._opaqueTokenCookieName = null, this._jwtCookieName = null, this._cookiePath = null, this._domain = null, this._cookieAvailableToSubdomains = !1, this._istCookieName = null);
4198
- var r = localStorage.getItem(Xt(this.publicToken));
4210
+ var r = localStorage.getItem(Qt(this.publicToken));
4199
4211
  if (!r) return;
4200
4212
  var n;
4201
4213
  try {
@@ -4205,7 +4217,7 @@ var tr = /*#__PURE__*/function () {
4205
4217
  }
4206
4218
  this.state = n;
4207
4219
  }
4208
- _createClass(tr, [{
4220
+ _createClass(nr, [{
4209
4221
  key: "opaqueTokenCookieName",
4210
4222
  get: function get() {
4211
4223
  var e;
@@ -4227,14 +4239,14 @@ var tr = /*#__PURE__*/function () {
4227
4239
  key: "readSessionCookie",
4228
4240
  value: function readSessionCookie() {
4229
4241
  return {
4230
- session_token: $t.get(this.opaqueTokenCookieName),
4231
- session_jwt: $t.get(this.jwtCookieName)
4242
+ session_token: Zt.get(this.opaqueTokenCookieName),
4243
+ session_jwt: Zt.get(this.jwtCookieName)
4232
4244
  };
4233
4245
  }
4234
4246
  }, {
4235
4247
  key: "readIntermediateSessionTokenCookie",
4236
4248
  value: function readIntermediateSessionTokenCookie() {
4237
- return $t.get(this.istCookieName);
4249
+ return Zt.get(this.istCookieName);
4238
4250
  }
4239
4251
  }, {
4240
4252
  key: "writeSessionCookie",
@@ -4243,32 +4255,32 @@ var tr = /*#__PURE__*/function () {
4243
4255
  var s = e.state,
4244
4256
  o = e.session_token,
4245
4257
  a = e.session_jwt,
4246
- c = tr.generateCookieOpts({
4258
+ c = nr.generateCookieOpts({
4247
4259
  expiresAt: null !== (r = null === (t = null == s ? void 0 : s.session) || void 0 === t ? void 0 : t.expires_at) && void 0 !== r ? r : "",
4248
4260
  availableToSubdomains: this._cookieAvailableToSubdomains,
4249
4261
  path: this._cookiePath,
4250
4262
  domain: this._domain
4251
4263
  });
4252
- er(this.opaqueTokenCookieName, o, c), er(this.jwtCookieName, a, c);
4253
- var u = tr.generateCookieOpts({
4264
+ rr(this.opaqueTokenCookieName, o, c), rr(this.jwtCookieName, a, c);
4265
+ var u = nr.generateCookieOpts({
4254
4266
  expiresAt: null !== (i = null === (n = null == s ? void 0 : s.session) || void 0 === n ? void 0 : n.expires_at) && void 0 !== i ? i : "",
4255
4267
  availableToSubdomains: !this._cookieAvailableToSubdomains,
4256
4268
  path: this._cookiePath,
4257
4269
  domain: this._domain
4258
4270
  });
4259
- Yt(this.jwtCookieName) && $t.remove(this.jwtCookieName, u), Yt(this.opaqueTokenCookieName) && $t.remove(this.opaqueTokenCookieName, u), Yt(this.jwtCookieName) && ze("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."), Yt(this.opaqueTokenCookieName) && ze("Could not remove extraneous opaque token cookie.");
4271
+ $t(this.jwtCookieName) && Zt.remove(this.jwtCookieName, u), $t(this.opaqueTokenCookieName) && Zt.remove(this.opaqueTokenCookieName, u), $t(this.jwtCookieName) && ze("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."), $t(this.opaqueTokenCookieName) && ze("Could not remove extraneous opaque token cookie.");
4260
4272
  }
4261
4273
  }, {
4262
4274
  key: "writeIntermediateSessionTokenCookie",
4263
4275
  value: function writeIntermediateSessionTokenCookie(e) {
4264
4276
  var t = new Date(Date.now() + 6e5),
4265
- r = tr.generateCookieOpts({
4277
+ r = nr.generateCookieOpts({
4266
4278
  expiresAt: t.toString(),
4267
4279
  availableToSubdomains: this._cookieAvailableToSubdomains,
4268
4280
  path: this._cookiePath,
4269
4281
  domain: this._domain
4270
4282
  });
4271
- er(this.istCookieName, e, r);
4283
+ rr(this.istCookieName, e, r);
4272
4284
  }
4273
4285
  }, {
4274
4286
  key: "removeSessionCookie",
@@ -4287,38 +4299,38 @@ var tr = /*#__PURE__*/function () {
4287
4299
  [!0, !1].forEach(function (t) {
4288
4300
  [_this8._cookiePath, null].forEach(function (r) {
4289
4301
  [_this8._domain, null].forEach(function (n) {
4290
- var i = tr.generateCookieOpts({
4302
+ var i = nr.generateCookieOpts({
4291
4303
  expiresAt: new Date(0).toString(),
4292
4304
  availableToSubdomains: t,
4293
4305
  path: r,
4294
4306
  domain: n
4295
4307
  });
4296
4308
  e.forEach(function (e) {
4297
- $t.remove(e, i);
4309
+ Zt.remove(e, i);
4298
4310
  });
4299
4311
  });
4300
4312
  });
4301
- }), e.forEach(Qt);
4313
+ }), e.forEach(tr);
4302
4314
  }
4303
4315
  }, {
4304
4316
  key: "syncToLocalStorage",
4305
4317
  value: function syncToLocalStorage() {
4306
- localStorage.setItem(Xt(this.publicToken), JSON.stringify(this.state));
4318
+ localStorage.setItem(Qt(this.publicToken), JSON.stringify(this.state));
4307
4319
  }
4308
4320
  }, {
4309
4321
  key: "getItem",
4310
4322
  value: function getItem(e) {
4311
- return localStorage.getItem(Xt(this.publicToken, e));
4323
+ return localStorage.getItem(Qt(this.publicToken, e));
4312
4324
  }
4313
4325
  }, {
4314
4326
  key: "setItem",
4315
4327
  value: function setItem(e, t) {
4316
- return localStorage.setItem(Xt(this.publicToken, e), t);
4328
+ return localStorage.setItem(Qt(this.publicToken, e), t);
4317
4329
  }
4318
4330
  }, {
4319
4331
  key: "removeItem",
4320
4332
  value: function removeItem(e) {
4321
- return localStorage.removeItem(Xt(this.publicToken, e));
4333
+ return localStorage.removeItem(Qt(this.publicToken, e));
4322
4334
  }
4323
4335
  }, {
4324
4336
  key: "markStateKeysUpdated",
@@ -4343,30 +4355,30 @@ var tr = /*#__PURE__*/function () {
4343
4355
  return e && (i.path = e), Boolean("localhost" === window.location.hostname || "[::1]" === window.location.hostname || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)) ? i.secure = !1 : (r && (i.domain = t || window.location.host), i.secure = !0), i;
4344
4356
  }
4345
4357
  }]);
4346
- return tr;
4358
+ return nr;
4347
4359
  }();
4348
- var rr = /*#__PURE__*/function (_tr) {
4349
- _inherits(rr, _tr);
4350
- function rr() {
4351
- _classCallCheck(this, rr);
4352
- return _callSuper(this, rr, arguments);
4360
+ var ir = /*#__PURE__*/function (_nr) {
4361
+ _inherits(ir, _nr);
4362
+ function ir() {
4363
+ _classCallCheck(this, ir);
4364
+ return _callSuper(this, ir, arguments);
4353
4365
  }
4354
- return _createClass(rr);
4355
- }(tr);
4356
- var nr = Symbol["for"]("__stytch_DataLayer"),
4357
- ir = function ir(e, t) {
4366
+ return _createClass(ir);
4367
+ }(nr);
4368
+ var sr = Symbol["for"]("__stytch_DataLayer"),
4369
+ or = function or(e, t) {
4358
4370
  var r = function () {
4359
4371
  var e = window;
4360
- return e[nr] || (e[nr] = {}), e[nr];
4372
+ return e[sr] || (e[sr] = {}), e[sr];
4361
4373
  }();
4362
- return r[e] || (r[e] = new rr(e, t)), r[e];
4374
+ return r[e] || (r[e] = new ir(e, t)), r[e];
4363
4375
  },
4364
- sr = function sr(e, t) {
4376
+ ar = function ar(e, t) {
4365
4377
  Object.values(e).forEach(function (e) {
4366
4378
  return e(t);
4367
4379
  });
4368
4380
  },
4369
- or = function () {
4381
+ cr = function () {
4370
4382
  var e = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).KEYS_TO_EXCLUDE,
4371
4383
  t = void 0 === e ? [] : e;
4372
4384
  return function e(r, n) {
@@ -4385,12 +4397,12 @@ var nr = Symbol["for"]("__stytch_DataLayer"),
4385
4397
  }({
4386
4398
  KEYS_TO_EXCLUDE: ["last_accessed_at"]
4387
4399
  });
4388
- var ar = /*#__PURE__*/function () {
4389
- function ar(e, t) {
4400
+ var ur = /*#__PURE__*/function () {
4401
+ function ur(e, t) {
4390
4402
  var _this10 = this;
4391
- _classCallCheck(this, ar);
4403
+ _classCallCheck(this, ur);
4392
4404
  this._publicToken = e, this._datalayer = t, this._listen = function (e) {
4393
- if (e.key !== Xt(_this10._publicToken)) return;
4405
+ if (e.key !== Qt(_this10._publicToken)) return;
4394
4406
  var t = null === e.newValue || "null" === e.newValue ? null : JSON.parse(e.newValue);
4395
4407
  _this10.updateState(t, !0);
4396
4408
  }, window.addEventListener("storage", this._listen);
@@ -4398,7 +4410,7 @@ var ar = /*#__PURE__*/function () {
4398
4410
  r = _this$_datalayer$read.session_token;
4399
4411
  r || this.destroySession();
4400
4412
  }
4401
- _createClass(ar, [{
4413
+ _createClass(ur, [{
4402
4414
  key: "getTokens",
4403
4415
  value: function getTokens() {
4404
4416
  var _this$_datalayer$read2 = this._datalayer.readSessionCookie(),
@@ -4436,7 +4448,7 @@ var ar = /*#__PURE__*/function () {
4436
4448
  r = null === e.state ? null : Object.assign(Object.assign({}, this._datalayer.state), e.state);
4437
4449
  this._datalayer.state = r;
4438
4450
  var n = e.state ? Object.keys(e.state) : [];
4439
- !this._datalayer.markStateKeysUpdated(n) && or(t, r) || sr(this._datalayer.subscriptions, r);
4451
+ !this._datalayer.markStateKeysUpdated(n) && cr(t, r) || ar(this._datalayer.subscriptions, r);
4440
4452
  }
4441
4453
  }, {
4442
4454
  key: "updateStateAndTokens",
@@ -4452,8 +4464,8 @@ var ar = /*#__PURE__*/function () {
4452
4464
  this._datalayer.state = n;
4453
4465
  var i = e ? Object.keys(e) : [],
4454
4466
  s = this._datalayer.markStateKeysUpdated(i),
4455
- o = !or(r, n);
4456
- (s || o) && (sr(this._datalayer.subscriptions, n), o && !t && this._datalayer.syncToLocalStorage());
4467
+ o = !cr(r, n);
4468
+ (s || o) && (ar(this._datalayer.subscriptions, n), o && !t && this._datalayer.syncToLocalStorage());
4457
4469
  }
4458
4470
  }, {
4459
4471
  key: "updateTokens",
@@ -4493,14 +4505,14 @@ var ar = /*#__PURE__*/function () {
4493
4505
  return null;
4494
4506
  }
4495
4507
  }]);
4496
- return ar;
4508
+ return ur;
4497
4509
  }();
4498
- var cr = /*#__PURE__*/function (_ar) {
4499
- _inherits(cr, _ar);
4500
- function cr() {
4510
+ var lr = /*#__PURE__*/function (_ur) {
4511
+ _inherits(lr, _ur);
4512
+ function lr() {
4501
4513
  var _this11;
4502
- _classCallCheck(this, cr);
4503
- _this11 = _callSuper(this, cr, arguments), _this11.updateUser = function (e) {
4514
+ _classCallCheck(this, lr);
4515
+ _this11 = _callSuper(this, lr, arguments), _this11.updateUser = function (e) {
4504
4516
  return _this11.updateState({
4505
4517
  user: e
4506
4518
  });
@@ -4513,10 +4525,10 @@ var cr = /*#__PURE__*/function (_ar) {
4513
4525
  };
4514
4526
  return _this11;
4515
4527
  }
4516
- return _createClass(cr);
4517
- }(ar);
4518
- var ur = Symbol["for"]("stytch__internal_b2c");
4519
- 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 () {
4528
+ return _createClass(lr);
4529
+ }(ur);
4530
+ var dr = Symbol["for"]("stytch__internal_b2c");
4531
+ 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 = N, 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 () {
4520
4532
  function _class(e, t) {
4521
4533
  var _this12 = this;
4522
4534
  _classCallCheck(this, _class);
@@ -4537,8 +4549,8 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4537
4549
  }
4538
4550
  };
4539
4551
  var s, o, a, c, u, l, d, h, p, f, _;
4540
- this._dataLayer = ir(e, n), this._subscriptionService = new cr(e, this._dataLayer);
4541
- var m = new Vt(this._dataLayer, "passwords");
4552
+ this._dataLayer = or(e, n), this._subscriptionService = new lr(e, this._dataLayer);
4553
+ var m = new Jt(this._dataLayer, "passwords");
4542
4554
  this._networkClient = new Wt(e, this._dataLayer, i.endpoints.sdkBackendURL, function () {
4543
4555
  var e, t, r, n;
4544
4556
  return {
@@ -4547,13 +4559,13 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4547
4559
  };
4548
4560
  });
4549
4561
  var v = new Mt(e, this._networkClient, this._dataLayer),
4550
- y = new Nt(v.getAsync()),
4562
+ y = new Ut(v.getAsync()),
4551
4563
  g = new Ze(e, i.endpoints.dfpBackendURL, v.getAsync(), y.executeRecaptcha),
4552
4564
  b = new Kt(i.endpoints.clientsideServicesIframeURL),
4553
- k = new Ht(e, b),
4565
+ k = new Vt(e, b),
4554
4566
  w = new jt(this._networkClient, g);
4555
4567
  var S, x;
4556
- 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(), {
4568
+ 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 Jt(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 Jt(this._dataLayer, "oauth"), v.getAsync(), {
4557
4569
  publicToken: e,
4558
4570
  testAPIURL: i.endpoints.testAPIURL,
4559
4571
  liveAPIURL: i.endpoints.liveAPIURL
@@ -4573,10 +4585,10 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4573
4585
  publicToken: e,
4574
4586
  dataLayer: this._dataLayer,
4575
4587
  networkClient: this._networkClient
4576
- }, Object.assign(S, _defineProperty({}, ur, x));
4588
+ }, Object.assign(S, _defineProperty({}, dr, x));
4577
4589
  }
4578
4590
  return _createClass(_class);
4579
- }(), 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) {
4591
+ }(), exports.StytchSDKAPIError = O, exports.StytchSDKError = R, exports.StytchSDKSchemaError = P, exports.StytchSDKUsageError = x, exports.UNRECOVERABLE_ERROR_TYPES = C, exports.UserCancellationError = U, exports.UserLockedOutError = K, exports.errorToStytchError = function (e) {
4580
4592
  switch (e.message) {
4581
4593
  case "internal_error":
4582
4594
  return new F(e.message);
@@ -4592,13 +4604,13 @@ exports.BiometricsFailedError = Q, exports.BiometricsUnavailableError = B, expor
4592
4604
  case "no_biometric_key":
4593
4605
  return new L();
4594
4606
  case "no_biometrics_enrolled":
4595
- return new U();
4607
+ return new N();
4596
4608
  case "keystore_unavailable":
4597
4609
  return new M();
4598
4610
  case "device_credentials_not_allowed":
4599
4611
  return new q();
4600
4612
  case "user_cancellation":
4601
- return new N();
4613
+ return new U();
4602
4614
  case "user_locked_out":
4603
4615
  return new K();
4604
4616
  case "google_onetap_missing_id_token":