@stytch/vanilla-js 4.4.3 → 4.5.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.
- package/CHANGELOG.md +17 -0
- package/dist/b2b/index.esm.js +2617 -2709
- package/dist/b2b/index.headless.esm.js +302 -392
- package/dist/b2b/index.headless.js +299 -389
- package/dist/b2b/index.js +2617 -2709
- package/dist/index.esm.js +3119 -3211
- package/dist/index.headless.esm.js +331 -421
- package/dist/index.headless.js +323 -413
- package/dist/index.js +3114 -3206
- package/package.json +2 -2
|
@@ -13,16 +13,16 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
13
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
14
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
function _toPropertyKey(
|
|
17
|
-
function _toPrimitive(
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
function
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
19
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
21
20
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
21
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
23
|
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
24
|
-
function _construct(
|
|
25
|
-
function _isNativeReflectConstruct() {
|
|
24
|
+
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
26
|
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
27
27
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
@@ -34,31 +34,45 @@ function e(t) {
|
|
|
34
34
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
|
|
35
35
|
}, e(t);
|
|
36
36
|
}
|
|
37
|
-
function t(
|
|
38
|
-
for (var
|
|
39
|
-
var i = r
|
|
40
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
41
|
-
if ("object" !== e(t) || null === t) return t;
|
|
42
|
-
var n = t[Symbol.toPrimitive];
|
|
43
|
-
if (void 0 !== n) {
|
|
44
|
-
var i = n.call(t, r || "default");
|
|
45
|
-
if ("object" !== e(i)) return i;
|
|
46
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
47
|
-
}
|
|
48
|
-
return ("string" === r ? String : Number)(t);
|
|
49
|
-
}(o, "string"), "symbol" === e(s) ? s : String(s)), i);
|
|
37
|
+
function t(e, t) {
|
|
38
|
+
for (var r = 0; r < t.length; r++) {
|
|
39
|
+
var i = t[r];
|
|
40
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, n(i.key), i);
|
|
50
41
|
}
|
|
51
|
-
var o, s;
|
|
52
42
|
}
|
|
53
43
|
function r(e, r, n) {
|
|
54
44
|
return r && t(e.prototype, r), n && t(e, n), Object.defineProperty(e, "prototype", {
|
|
55
45
|
writable: !1
|
|
56
46
|
}), e;
|
|
57
47
|
}
|
|
58
|
-
function n(
|
|
59
|
-
|
|
48
|
+
function n(t) {
|
|
49
|
+
var r = function (t, r) {
|
|
50
|
+
if ("object" != e(t) || !t) return t;
|
|
51
|
+
var n = t[Symbol.toPrimitive];
|
|
52
|
+
if (void 0 !== n) {
|
|
53
|
+
var i = n.call(t, r || "default");
|
|
54
|
+
if ("object" != e(i)) return i;
|
|
55
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
56
|
+
}
|
|
57
|
+
return ("string" === r ? String : Number)(t);
|
|
58
|
+
}(t, "string");
|
|
59
|
+
return "symbol" == e(r) ? r : String(r);
|
|
60
60
|
}
|
|
61
61
|
function i(e, t) {
|
|
62
|
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
63
|
+
}
|
|
64
|
+
function o(t, r, n) {
|
|
65
|
+
return r = d(r), function (t, r) {
|
|
66
|
+
if (r && ("object" === e(r) || "function" == typeof r)) return r;
|
|
67
|
+
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
68
|
+
return s(t);
|
|
69
|
+
}(t, u() ? Reflect.construct(r, n || [], d(t).constructor) : r.apply(t, n));
|
|
70
|
+
}
|
|
71
|
+
function s(e) {
|
|
72
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
73
|
+
return e;
|
|
74
|
+
}
|
|
75
|
+
function a(e, t) {
|
|
62
76
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
63
77
|
e.prototype = Object.create(t && t.prototype, {
|
|
64
78
|
constructor: {
|
|
@@ -70,29 +84,9 @@ function i(e, t) {
|
|
|
70
84
|
writable: !1
|
|
71
85
|
}), t && l(e, t);
|
|
72
86
|
}
|
|
73
|
-
function
|
|
74
|
-
var r = u();
|
|
75
|
-
return function () {
|
|
76
|
-
var n,
|
|
77
|
-
i = d(t);
|
|
78
|
-
if (r) {
|
|
79
|
-
var o = d(this).constructor;
|
|
80
|
-
n = Reflect.construct(i, arguments, o);
|
|
81
|
-
} else n = i.apply(this, arguments);
|
|
82
|
-
return function (t, r) {
|
|
83
|
-
if (r && ("object" === e(r) || "function" == typeof r)) return r;
|
|
84
|
-
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
85
|
-
return s(t);
|
|
86
|
-
}(this, n);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function s(e) {
|
|
90
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
91
|
-
return e;
|
|
92
|
-
}
|
|
93
|
-
function a(e) {
|
|
87
|
+
function c(e) {
|
|
94
88
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
95
|
-
return
|
|
89
|
+
return c = function c(e) {
|
|
96
90
|
if (null === e || !function (e) {
|
|
97
91
|
try {
|
|
98
92
|
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
@@ -106,7 +100,13 @@ function a(e) {
|
|
|
106
100
|
t.set(e, r);
|
|
107
101
|
}
|
|
108
102
|
function r() {
|
|
109
|
-
return
|
|
103
|
+
return function (e, t, r) {
|
|
104
|
+
if (u()) return Reflect.construct.apply(null, arguments);
|
|
105
|
+
var n = [null];
|
|
106
|
+
n.push.apply(n, t);
|
|
107
|
+
var i = new (e.bind.apply(e, n))();
|
|
108
|
+
return r && l(i, r.prototype), i;
|
|
109
|
+
}(e, arguments, d(this).constructor);
|
|
110
110
|
}
|
|
111
111
|
return r.prototype = Object.create(e.prototype, {
|
|
112
112
|
constructor: {
|
|
@@ -116,25 +116,15 @@ function a(e) {
|
|
|
116
116
|
configurable: !0
|
|
117
117
|
}
|
|
118
118
|
}), l(r, e);
|
|
119
|
-
},
|
|
120
|
-
}
|
|
121
|
-
function c(e, t, r) {
|
|
122
|
-
return c = u() ? Reflect.construct.bind() : function (e, t, r) {
|
|
123
|
-
var n = [null];
|
|
124
|
-
n.push.apply(n, t);
|
|
125
|
-
var i = new (Function.bind.apply(e, n))();
|
|
126
|
-
return r && l(i, r.prototype), i;
|
|
127
|
-
}, c.apply(null, arguments);
|
|
119
|
+
}, c(e);
|
|
128
120
|
}
|
|
129
121
|
function u() {
|
|
130
|
-
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
|
131
|
-
if (Reflect.construct.sham) return !1;
|
|
132
|
-
if ("function" == typeof Proxy) return !0;
|
|
133
122
|
try {
|
|
134
|
-
|
|
135
|
-
} catch (e) {
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
124
|
+
} catch (e) {}
|
|
125
|
+
return (u = function u() {
|
|
126
|
+
return !!e;
|
|
127
|
+
})();
|
|
138
128
|
}
|
|
139
129
|
function l(e, t) {
|
|
140
130
|
return l = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
|
|
@@ -164,338 +154,262 @@ var b,
|
|
|
164
154
|
g,
|
|
165
155
|
y,
|
|
166
156
|
k = function (e) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var i;
|
|
171
|
-
return n(this, c), (i = t.call(this, e + "\n" + r)).message = e + "\n" + r, i.name = "SDKAPIUnreachableError", i.details = r, Object.setPrototypeOf(s(i), c.prototype), i;
|
|
157
|
+
function t(e, r) {
|
|
158
|
+
var n;
|
|
159
|
+
return i(this, t), (n = o(this, t, [e + "\n" + r])).message = e + "\n" + r, n.name = "SDKAPIUnreachableError", n.details = r, Object.setPrototypeOf(s(n), t.prototype), n;
|
|
172
160
|
}
|
|
173
|
-
return
|
|
161
|
+
return a(t, c(Error)), r(t);
|
|
174
162
|
}(),
|
|
175
163
|
w = function (e) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var i;
|
|
180
|
-
return n(this, s), (i = t.call(this)).name = "StytchSDKUsageError", i.message = "Invalid call to ".concat(e, "\n") + r, i;
|
|
164
|
+
function t(e, r) {
|
|
165
|
+
var n;
|
|
166
|
+
return i(this, t), (n = o(this, t)).name = "StytchSDKUsageError", n.message = "Invalid call to ".concat(e, "\n") + r, n;
|
|
181
167
|
}
|
|
182
|
-
return r(
|
|
168
|
+
return a(t, c(Error)), r(t);
|
|
183
169
|
}(),
|
|
184
170
|
S = function (e) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
var
|
|
189
|
-
n(this, s), (r = t.call(this)).name = "StytchSDKSchemaError";
|
|
190
|
-
var o = null === (i = e.body) || void 0 === i ? void 0 : i.map(function (e) {
|
|
171
|
+
function t(e) {
|
|
172
|
+
var r, n;
|
|
173
|
+
i(this, t), (r = o(this, t)).name = "StytchSDKSchemaError";
|
|
174
|
+
var s = null === (n = e.body) || void 0 === n ? void 0 : n.map(function (e) {
|
|
191
175
|
return "".concat(e.dataPath, ": ").concat(e.message);
|
|
192
176
|
}).join("\n");
|
|
193
|
-
return r.message = "[400] Request does not match expected schema\n".concat(
|
|
177
|
+
return r.message = "[400] Request does not match expected schema\n".concat(s), r;
|
|
194
178
|
}
|
|
195
|
-
return r(
|
|
179
|
+
return a(t, c(Error)), r(t);
|
|
196
180
|
}(),
|
|
197
181
|
P = function (e) {
|
|
198
|
-
|
|
199
|
-
var t = o(s);
|
|
200
|
-
function s(e) {
|
|
182
|
+
function t(e) {
|
|
201
183
|
var r;
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
|
|
184
|
+
i(this, t), (r = o(this, t)).name = "StytchSDKAPIError";
|
|
185
|
+
var n = e.status_code,
|
|
186
|
+
s = e.error_type,
|
|
205
187
|
a = e.error_message,
|
|
206
188
|
c = e.error_url,
|
|
207
189
|
u = e.request_id;
|
|
208
|
-
return r.error_type =
|
|
190
|
+
return r.error_type = s, r.error_message = a, r.error_url = c, r.request_id = u, r.status_code = n, r.message = "[".concat(n, "] ").concat(s, "\n") + "".concat(a, "\n") + "See ".concat(c, " for more information.\n") + (u ? "request_id: ".concat(u, "\n") : ""), r;
|
|
209
191
|
}
|
|
210
|
-
return r(
|
|
192
|
+
return a(t, c(Error)), r(t);
|
|
211
193
|
}(),
|
|
212
194
|
C = ["unauthorized_credentials", "user_unauthenticated", "invalid_secret_authentication", "session_not_found"],
|
|
213
195
|
A = function (e) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
var i;
|
|
218
|
-
return n(this, s), (i = t.call(this, r)).name = e, i;
|
|
196
|
+
function t(e, r) {
|
|
197
|
+
var n;
|
|
198
|
+
return i(this, t), (n = o(this, t, [r])).name = e, n;
|
|
219
199
|
}
|
|
220
|
-
return r(
|
|
200
|
+
return a(t, c(Error)), r(t);
|
|
221
201
|
}(),
|
|
222
202
|
T = function (e) {
|
|
223
|
-
|
|
224
|
-
var t = o(a);
|
|
225
|
-
function a(e) {
|
|
203
|
+
function t(e) {
|
|
226
204
|
var r;
|
|
227
|
-
return
|
|
205
|
+
return i(this, t), r = o(this, t, ["StytchAPIUnreachableError", e]), Object.setPrototypeOf(s(r), t.prototype), r;
|
|
228
206
|
}
|
|
229
|
-
return r(
|
|
207
|
+
return a(t, A), r(t);
|
|
230
208
|
}(),
|
|
231
209
|
O = function (e) {
|
|
232
|
-
|
|
233
|
-
var t = o(s);
|
|
234
|
-
function s(e) {
|
|
210
|
+
function t(e) {
|
|
235
211
|
var r;
|
|
236
|
-
|
|
237
|
-
var
|
|
212
|
+
i(this, t);
|
|
213
|
+
var n = null === (r = e.body) || void 0 === r ? void 0 : r.map(function (e) {
|
|
238
214
|
return "".concat(e.dataPath, ": ").concat(e.message);
|
|
239
215
|
}).join("\n");
|
|
240
|
-
return
|
|
216
|
+
return o(this, t, ["StytchAPISchemaError", "Request does not match expected schema\n".concat(n)]);
|
|
241
217
|
}
|
|
242
|
-
return r(
|
|
218
|
+
return a(t, A), r(t);
|
|
243
219
|
}(),
|
|
244
220
|
E = function (e) {
|
|
245
|
-
|
|
246
|
-
var t = o(s);
|
|
247
|
-
function s(e) {
|
|
221
|
+
function t(e) {
|
|
248
222
|
var r;
|
|
249
|
-
|
|
250
|
-
var
|
|
251
|
-
|
|
223
|
+
i(this, t);
|
|
224
|
+
var n = e.status_code,
|
|
225
|
+
s = e.error_type,
|
|
252
226
|
a = e.error_message,
|
|
253
227
|
c = e.error_url,
|
|
254
228
|
u = e.request_id;
|
|
255
|
-
return (r =
|
|
229
|
+
return (r = o(this, t, ["StytchAPIError", "[".concat(n, "] ").concat(s, "\n") + "".concat(a, "\n") + "See ".concat(c, " for more information.\n") + (u ? "request_id: ".concat(u, "\n") : "")])).error_type = s, r.error_message = a, r.error_url = c, r.request_id = u, r.status_code = n, r;
|
|
256
230
|
}
|
|
257
|
-
return r(
|
|
231
|
+
return a(t, A), r(t);
|
|
258
232
|
}(),
|
|
259
233
|
x = function (e) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
var o;
|
|
264
|
-
return n(this, s), (o = t.call(this, e, r)).options = i, o;
|
|
234
|
+
function t(e, r, n) {
|
|
235
|
+
var s;
|
|
236
|
+
return i(this, t), (s = o(this, t, [e, r])).options = n, s;
|
|
265
237
|
}
|
|
266
|
-
return r(
|
|
238
|
+
return a(t, A), r(t);
|
|
267
239
|
}(),
|
|
268
240
|
D = function (e) {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
function s() {
|
|
272
|
-
return n(this, s), t.call(this, "NoCurrentSessionError", "There is no session currently available. Make sure the user is authenticated with a valid session.");
|
|
241
|
+
function t() {
|
|
242
|
+
return i(this, t), o(this, t, ["NoCurrentSessionError", "There is no session currently available. Make sure the user is authenticated with a valid session."]);
|
|
273
243
|
}
|
|
274
|
-
return r(
|
|
244
|
+
return a(t, x), r(t);
|
|
275
245
|
}(),
|
|
276
246
|
I = function (e) {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
function s(e) {
|
|
280
|
-
return n(this, s), t.call(this, "InternalError", e || "An internal error has occurred. Please contact Stytch if this occurs.");
|
|
247
|
+
function t(e) {
|
|
248
|
+
return i(this, t), o(this, t, ["InternalError", e || "An internal error has occurred. Please contact Stytch if this occurs."]);
|
|
281
249
|
}
|
|
282
|
-
return r(
|
|
250
|
+
return a(t, x), r(t);
|
|
283
251
|
}(),
|
|
284
252
|
R = function (e) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
function s() {
|
|
288
|
-
return n(this, s), t.call(this, "NoBiometricsRegistrationError", "There is no biometric registration available. Authenticate with another method and add a new biometric registration first.");
|
|
253
|
+
function t() {
|
|
254
|
+
return i(this, t), o(this, t, ["NoBiometricsRegistrationError", "There is no biometric registration available. Authenticate with another method and add a new biometric registration first."]);
|
|
289
255
|
}
|
|
290
|
-
return r(
|
|
256
|
+
return a(t, x), r(t);
|
|
291
257
|
}(),
|
|
292
258
|
B = function (e) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
function s() {
|
|
296
|
-
return n(this, s), t.call(this, "BiometricsUnavailableError", "Biometrics is not available on the device.");
|
|
259
|
+
function t() {
|
|
260
|
+
return i(this, t), o(this, t, ["BiometricsUnavailableError", "Biometrics is not available on the device."]);
|
|
297
261
|
}
|
|
298
|
-
return r(
|
|
262
|
+
return a(t, x), r(t);
|
|
299
263
|
}(),
|
|
300
264
|
L = function (e) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
function s() {
|
|
304
|
-
return n(this, s), t.call(this, "KeyInvalidatedError", "The biometrics enrollment on the device has changed.");
|
|
265
|
+
function t() {
|
|
266
|
+
return i(this, t), o(this, t, ["KeyInvalidatedError", "The biometrics enrollment on the device has changed."]);
|
|
305
267
|
}
|
|
306
|
-
return r(
|
|
268
|
+
return a(t, x), r(t);
|
|
307
269
|
}(),
|
|
308
270
|
M = function (e) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
function s() {
|
|
312
|
-
return n(this, s), t.call(this, "KeystoreUnavailableError", "The Android keystore is unavailable on the device. Consider setting allowFallbackToCleartext to true.");
|
|
271
|
+
function t() {
|
|
272
|
+
return i(this, t), o(this, t, ["KeystoreUnavailableError", "The Android keystore is unavailable on the device. Consider setting allowFallbackToCleartext to true."]);
|
|
313
273
|
}
|
|
314
|
-
return r(
|
|
274
|
+
return a(t, x), r(t);
|
|
315
275
|
}(),
|
|
316
276
|
F = function (e) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
function s() {
|
|
320
|
-
return n(this, s), t.call(this, "NoBiometricsEnrolledError", "There is no biometric factor enrolled on the device. Add a biometric factor in the device settings.");
|
|
277
|
+
function t() {
|
|
278
|
+
return i(this, t), o(this, t, ["NoBiometricsEnrolledError", "There is no biometric factor enrolled on the device. Add a biometric factor in the device settings."]);
|
|
321
279
|
}
|
|
322
|
-
return r(
|
|
280
|
+
return a(t, x), r(t);
|
|
323
281
|
}(),
|
|
324
282
|
j = function (e) {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
function s() {
|
|
328
|
-
return n(this, s), t.call(this, "UserCancellationError", "The user canceled the prompt. Ask the user to try again.");
|
|
283
|
+
function t() {
|
|
284
|
+
return i(this, t), o(this, t, ["UserCancellationError", "The user canceled the prompt. Ask the user to try again."]);
|
|
329
285
|
}
|
|
330
|
-
return r(
|
|
286
|
+
return a(t, x), r(t);
|
|
331
287
|
}(),
|
|
332
288
|
K = function (e) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
function s() {
|
|
336
|
-
return n(this, s), t.call(this, "UserLockedOutError", "The user has been locked out due to too many failed attempts. Ask the user to try again later.");
|
|
289
|
+
function t() {
|
|
290
|
+
return i(this, t), o(this, t, ["UserLockedOutError", "The user has been locked out due to too many failed attempts. Ask the user to try again later."]);
|
|
337
291
|
}
|
|
338
|
-
return r(
|
|
292
|
+
return a(t, x), r(t);
|
|
339
293
|
}(),
|
|
340
294
|
N = function (e) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
function s() {
|
|
344
|
-
return n(this, s), t.call(this, "DeviceCredentialsNotAllowedError", "The device credentials allowment is mismatched. Change the allowDeviceCredentials parameter to be the same in both the register and authenticate methods.");
|
|
295
|
+
function t() {
|
|
296
|
+
return i(this, t), o(this, t, ["DeviceCredentialsNotAllowedError", "The device credentials allowment is mismatched. Change the allowDeviceCredentials parameter to be the same in both the register and authenticate methods."]);
|
|
345
297
|
}
|
|
346
|
-
return r(
|
|
298
|
+
return a(t, x), r(t);
|
|
347
299
|
}(),
|
|
348
300
|
z = function (e) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
function s() {
|
|
352
|
-
return n(this, s), t.call(this, "MissingGoogleClientIDError", "No Google client ID was found in the project.");
|
|
301
|
+
function t() {
|
|
302
|
+
return i(this, t), o(this, t, ["MissingGoogleClientIDError", "No Google client ID was found in the project."]);
|
|
353
303
|
}
|
|
354
|
-
return r(
|
|
304
|
+
return a(t, x), r(t);
|
|
355
305
|
}(),
|
|
356
306
|
U = function (e) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
function s() {
|
|
360
|
-
return n(this, s), t.call(this, "MissingPKCEError", "Make sure this flow is completed on the same device on which it was started.");
|
|
307
|
+
function t() {
|
|
308
|
+
return i(this, t), o(this, t, ["MissingPKCEError", "Make sure this flow is completed on the same device on which it was started."]);
|
|
361
309
|
}
|
|
362
|
-
return r(
|
|
310
|
+
return a(t, x), r(t);
|
|
363
311
|
}(),
|
|
364
312
|
q = function (e) {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
function s() {
|
|
368
|
-
return n(this, s), t.call(this, "MissingAuthorizationCredentialIDTokenError", "The authorization credential is missing an ID token.");
|
|
313
|
+
function t() {
|
|
314
|
+
return i(this, t), o(this, t, ["MissingAuthorizationCredentialIDTokenError", "The authorization credential is missing an ID token."]);
|
|
369
315
|
}
|
|
370
|
-
return r(
|
|
316
|
+
return a(t, x), r(t);
|
|
371
317
|
}(),
|
|
372
318
|
W = function (e) {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
function s() {
|
|
376
|
-
return n(this, s), t.call(this, "InvalidAuthorizationCredentialError", "The authorization credential is invalid. Verify that OAuth is set up correctly in the developer console, and call the start flow method.");
|
|
319
|
+
function t() {
|
|
320
|
+
return i(this, t), o(this, t, ["InvalidAuthorizationCredentialError", "The authorization credential is invalid. Verify that OAuth is set up correctly in the developer console, and call the start flow method."]);
|
|
377
321
|
}
|
|
378
|
-
return r(
|
|
322
|
+
return a(t, x), r(t);
|
|
379
323
|
}(),
|
|
380
324
|
G = function (e) {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
function s() {
|
|
384
|
-
return n(this, s), t.call(this, "MissingPublicKeyError", "Failed to retrieve the public key. Add a new biometric registration.");
|
|
325
|
+
function t() {
|
|
326
|
+
return i(this, t), o(this, t, ["MissingPublicKeyError", "Failed to retrieve the public key. Add a new biometric registration."]);
|
|
385
327
|
}
|
|
386
|
-
return r(
|
|
328
|
+
return a(t, x), r(t);
|
|
387
329
|
}(),
|
|
388
330
|
H = function (e) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
function s() {
|
|
392
|
-
return n(this, s), t.call(this, "ChallengeSigningFailedError", "Failed to sign the challenge with the key.");
|
|
331
|
+
function t() {
|
|
332
|
+
return i(this, t), o(this, t, ["ChallengeSigningFailedError", "Failed to sign the challenge with the key."]);
|
|
393
333
|
}
|
|
394
|
-
return r(
|
|
334
|
+
return a(t, x), r(t);
|
|
395
335
|
}(),
|
|
396
336
|
Y = function (e) {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
function s() {
|
|
400
|
-
return n(this, s), t.call(this, "SDKNotConfiguredError", "Stytch client is not confiured. You must call the configure method before using the SDK");
|
|
337
|
+
function t() {
|
|
338
|
+
return i(this, t), o(this, t, ["SDKNotConfiguredError", "Stytch client is not confiured. You must call the configure method before using the SDK"]);
|
|
401
339
|
}
|
|
402
|
-
return r(
|
|
340
|
+
return a(t, x), r(t);
|
|
403
341
|
}(),
|
|
404
342
|
V = function (e) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
function s() {
|
|
408
|
-
return n(this, s), t.call(this, "FailedCodeChallengeError", "Failed to create a code challenge");
|
|
343
|
+
function t() {
|
|
344
|
+
return i(this, t), o(this, t, ["FailedCodeChallengeError", "Failed to create a code challenge"]);
|
|
409
345
|
}
|
|
410
|
-
return r(
|
|
346
|
+
return a(t, x), r(t);
|
|
411
347
|
}(),
|
|
412
348
|
J = function (e) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
function s() {
|
|
416
|
-
return n(this, s), t.call(this, "PasskeysUnsupportedError", "Passkeys are not supported on this device");
|
|
349
|
+
function t() {
|
|
350
|
+
return i(this, t), o(this, t, ["PasskeysUnsupportedError", "Passkeys are not supported on this device"]);
|
|
417
351
|
}
|
|
418
|
-
return r(
|
|
352
|
+
return a(t, x), r(t);
|
|
419
353
|
}(),
|
|
420
354
|
$ = function (e) {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
function s() {
|
|
424
|
-
return n(this, s), t.call(this, "FailedToDecryptDataError", "Failed to decrypt user data");
|
|
355
|
+
function t() {
|
|
356
|
+
return i(this, t), o(this, t, ["FailedToDecryptDataError", "Failed to decrypt user data"]);
|
|
425
357
|
}
|
|
426
|
-
return r(
|
|
358
|
+
return a(t, x), r(t);
|
|
427
359
|
}(),
|
|
428
360
|
X = function (e) {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
function s() {
|
|
432
|
-
return n(this, s), t.call(this, "BiometricsFailedError", "Biometric authentication failed");
|
|
361
|
+
function t() {
|
|
362
|
+
return i(this, t), o(this, t, ["BiometricsFailedError", "Biometric authentication failed"]);
|
|
433
363
|
}
|
|
434
|
-
return r(
|
|
364
|
+
return a(t, x), r(t);
|
|
435
365
|
}(),
|
|
436
366
|
Z = function (e) {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
function s() {
|
|
440
|
-
return n(this, s), t.call(this, "InvalidStartUrlError", "The start URL was invalid or improperly formatted.");
|
|
367
|
+
function t() {
|
|
368
|
+
return i(this, t), o(this, t, ["InvalidStartUrlError", "The start URL was invalid or improperly formatted."]);
|
|
441
369
|
}
|
|
442
|
-
return r(
|
|
370
|
+
return a(t, x), r(t);
|
|
443
371
|
}(),
|
|
444
372
|
Q = function (e) {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
function s() {
|
|
448
|
-
return n(this, s), t.call(this, "InvalidRedirectSchemeError", "The scheme from the given redirect urls was invalid. Possible reasons include: nil scheme, non-custom scheme (using http or https), or differing schemes for login/signup urls.");
|
|
373
|
+
function t() {
|
|
374
|
+
return i(this, t), o(this, t, ["InvalidRedirectSchemeError", "The scheme from the given redirect urls was invalid. Possible reasons include: nil scheme, non-custom scheme (using http or https), or differing schemes for login/signup urls."]);
|
|
449
375
|
}
|
|
450
|
-
return r(
|
|
376
|
+
return a(t, x), r(t);
|
|
451
377
|
}(),
|
|
452
378
|
ee = function (e) {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
function s() {
|
|
456
|
-
return n(this, s), t.call(this, "MissingUrlError", "The underlying web authentication service failed to return a URL.");
|
|
379
|
+
function t() {
|
|
380
|
+
return i(this, t), o(this, t, ["MissingUrlError", "The underlying web authentication service failed to return a URL."]);
|
|
457
381
|
}
|
|
458
|
-
return r(
|
|
382
|
+
return a(t, x), r(t);
|
|
459
383
|
}(),
|
|
460
384
|
te = function (e) {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
function s() {
|
|
464
|
-
return n(this, s), t.call(this, "InvalidCredentialTypeError", "The public key credential type was not of the expected type.");
|
|
385
|
+
function t() {
|
|
386
|
+
return i(this, t), o(this, t, ["InvalidCredentialTypeError", "The public key credential type was not of the expected type."]);
|
|
465
387
|
}
|
|
466
|
-
return r(
|
|
388
|
+
return a(t, x), r(t);
|
|
467
389
|
}(),
|
|
468
390
|
re = function (e) {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
function s() {
|
|
472
|
-
return n(this, s), t.call(this, "MissingAttestationObjectError", "The public key credential is missing the attestation object.");
|
|
391
|
+
function t() {
|
|
392
|
+
return i(this, t), o(this, t, ["MissingAttestationObjectError", "The public key credential is missing the attestation object."]);
|
|
473
393
|
}
|
|
474
|
-
return r(
|
|
394
|
+
return a(t, x), r(t);
|
|
475
395
|
}(),
|
|
476
396
|
ne = function (e) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
function s() {
|
|
480
|
-
return n(this, s), t.call(this, "JSONDataNotConvertibleToStringError", "JSON data unable to be converted to String type.");
|
|
397
|
+
function t() {
|
|
398
|
+
return i(this, t), o(this, t, ["JSONDataNotConvertibleToStringError", "JSON data unable to be converted to String type."]);
|
|
481
399
|
}
|
|
482
|
-
return r(
|
|
400
|
+
return a(t, x), r(t);
|
|
483
401
|
}(),
|
|
484
402
|
ie = function (e) {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
function s() {
|
|
488
|
-
return n(this, s), t.call(this, "RandomNumberGenerationFailed", "Random number generation failed");
|
|
403
|
+
function t() {
|
|
404
|
+
return i(this, t), o(this, t, ["RandomNumberGenerationFailed", "Random number generation failed"]);
|
|
489
405
|
}
|
|
490
|
-
return r(
|
|
406
|
+
return a(t, x), r(t);
|
|
491
407
|
}(),
|
|
492
408
|
oe = function (e) {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
function s() {
|
|
496
|
-
return n(this, s), t.call(this, "PasskeysInvalidEncoding", "Invalid passkey encoding");
|
|
409
|
+
function t() {
|
|
410
|
+
return i(this, t), o(this, t, ["PasskeysInvalidEncoding", "Invalid passkey encoding"]);
|
|
497
411
|
}
|
|
498
|
-
return r(
|
|
412
|
+
return a(t, x), r(t);
|
|
499
413
|
}();
|
|
500
414
|
function se(e) {
|
|
501
415
|
switch (e.message) {
|
|
@@ -922,49 +836,43 @@ function de() {
|
|
|
922
836
|
function he(e, t) {
|
|
923
837
|
for (var r = 0; r < t.length; r++) {
|
|
924
838
|
var n = t[r];
|
|
925
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, (
|
|
926
|
-
if ("object" !== le(e) || null === e) return e;
|
|
927
|
-
var r = e[Symbol.toPrimitive];
|
|
928
|
-
if (void 0 !== r) {
|
|
929
|
-
var n = r.call(e, t || "default");
|
|
930
|
-
if ("object" !== le(n)) return n;
|
|
931
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
932
|
-
}
|
|
933
|
-
return ("string" === t ? String : Number)(e);
|
|
934
|
-
}(i, "string"), "symbol" === le(o) ? o : String(o)), n);
|
|
839
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, _e(n.key), n);
|
|
935
840
|
}
|
|
936
|
-
var i, o;
|
|
937
841
|
}
|
|
938
842
|
function pe(e, t, r) {
|
|
939
843
|
return t && he(e.prototype, t), r && he(e, r), Object.defineProperty(e, "prototype", {
|
|
940
844
|
writable: !1
|
|
941
845
|
}), e;
|
|
942
846
|
}
|
|
943
|
-
function _e(e
|
|
847
|
+
function _e(e) {
|
|
848
|
+
var t = function (e, t) {
|
|
849
|
+
if ("object" != le(e) || !e) return e;
|
|
850
|
+
var r = e[Symbol.toPrimitive];
|
|
851
|
+
if (void 0 !== r) {
|
|
852
|
+
var n = r.call(e, t || "default");
|
|
853
|
+
if ("object" != le(n)) return n;
|
|
854
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
855
|
+
}
|
|
856
|
+
return ("string" === t ? String : Number)(e);
|
|
857
|
+
}(e, "string");
|
|
858
|
+
return "symbol" == le(t) ? t : String(t);
|
|
859
|
+
}
|
|
860
|
+
function fe(e, t) {
|
|
944
861
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
945
862
|
}
|
|
946
|
-
function
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
return function (e, t) {
|
|
956
|
-
if (t && ("object" === le(t) || "function" == typeof t)) return t;
|
|
957
|
-
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
958
|
-
return function (e) {
|
|
959
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
960
|
-
return e;
|
|
961
|
-
}(e);
|
|
962
|
-
}(this, r);
|
|
963
|
-
};
|
|
863
|
+
function me(e, t, r) {
|
|
864
|
+
return t = ye(t), function (e, t) {
|
|
865
|
+
if (t && ("object" === le(t) || "function" == typeof t)) return t;
|
|
866
|
+
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
867
|
+
return function (e) {
|
|
868
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
869
|
+
return e;
|
|
870
|
+
}(e);
|
|
871
|
+
}(e, be() ? Reflect.construct(t, r || [], ye(e).constructor) : t.apply(e, r));
|
|
964
872
|
}
|
|
965
|
-
function
|
|
873
|
+
function ve(e) {
|
|
966
874
|
var t = "function" == typeof Map ? new Map() : void 0;
|
|
967
|
-
return
|
|
875
|
+
return ve = function ve(e) {
|
|
968
876
|
if (null === e || !function (e) {
|
|
969
877
|
try {
|
|
970
878
|
return -1 !== Function.toString.call(e).indexOf("[native code]");
|
|
@@ -978,7 +886,13 @@ function me(e) {
|
|
|
978
886
|
t.set(e, r);
|
|
979
887
|
}
|
|
980
888
|
function r() {
|
|
981
|
-
return
|
|
889
|
+
return function (e, t, r) {
|
|
890
|
+
if (be()) return Reflect.construct.apply(null, arguments);
|
|
891
|
+
var n = [null];
|
|
892
|
+
n.push.apply(n, t);
|
|
893
|
+
var i = new (e.bind.apply(e, n))();
|
|
894
|
+
return r && ge(i, r.prototype), i;
|
|
895
|
+
}(e, arguments, ye(this).constructor);
|
|
982
896
|
}
|
|
983
897
|
return r.prototype = Object.create(e.prototype, {
|
|
984
898
|
constructor: {
|
|
@@ -988,25 +902,15 @@ function me(e) {
|
|
|
988
902
|
configurable: !0
|
|
989
903
|
}
|
|
990
904
|
}), ge(r, e);
|
|
991
|
-
},
|
|
992
|
-
}
|
|
993
|
-
function ve(e, t, r) {
|
|
994
|
-
return ve = be() ? Reflect.construct.bind() : function (e, t, r) {
|
|
995
|
-
var n = [null];
|
|
996
|
-
n.push.apply(n, t);
|
|
997
|
-
var i = new (Function.bind.apply(e, n))();
|
|
998
|
-
return r && ge(i, r.prototype), i;
|
|
999
|
-
}, ve.apply(null, arguments);
|
|
905
|
+
}, ve(e);
|
|
1000
906
|
}
|
|
1001
907
|
function be() {
|
|
1002
|
-
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
|
|
1003
|
-
if (Reflect.construct.sham) return !1;
|
|
1004
|
-
if ("function" == typeof Proxy) return !0;
|
|
1005
908
|
try {
|
|
1006
|
-
|
|
1007
|
-
} catch (e) {
|
|
1008
|
-
|
|
1009
|
-
|
|
909
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
910
|
+
} catch (e) {}
|
|
911
|
+
return (be = function be() {
|
|
912
|
+
return !!e;
|
|
913
|
+
})();
|
|
1010
914
|
}
|
|
1011
915
|
function ge(e, t) {
|
|
1012
916
|
return ge = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
|
|
@@ -1054,7 +958,11 @@ function we(e, t, r, n) {
|
|
|
1054
958
|
"function" == typeof SuppressedError && SuppressedError, (ke || (ke = {})).RequiredCatcha = "Catcha Required";
|
|
1055
959
|
var Se,
|
|
1056
960
|
Pe = function (e) {
|
|
1057
|
-
|
|
961
|
+
function t(e) {
|
|
962
|
+
var r;
|
|
963
|
+
return fe(this, t), (r = me(this, t, [e])).type = e, r;
|
|
964
|
+
}
|
|
965
|
+
return function (e, t) {
|
|
1058
966
|
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
1059
967
|
e.prototype = Object.create(t && t.prototype, {
|
|
1060
968
|
constructor: {
|
|
@@ -1065,13 +973,7 @@ var Se,
|
|
|
1065
973
|
}), Object.defineProperty(e, "prototype", {
|
|
1066
974
|
writable: !1
|
|
1067
975
|
}), t && ge(e, t);
|
|
1068
|
-
}(
|
|
1069
|
-
var t = fe(r);
|
|
1070
|
-
function r(e) {
|
|
1071
|
-
var n;
|
|
1072
|
-
return _e(this, r), (n = t.call(this, e)).type = e, n;
|
|
1073
|
-
}
|
|
1074
|
-
return pe(r);
|
|
976
|
+
}(t, ve(Error)), pe(t);
|
|
1075
977
|
}();
|
|
1076
978
|
function Ce(e) {
|
|
1077
979
|
var t,
|
|
@@ -1349,7 +1251,7 @@ var Fe,
|
|
|
1349
1251
|
o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : function () {
|
|
1350
1252
|
return Promise.resolve(void 0);
|
|
1351
1253
|
};
|
|
1352
|
-
|
|
1254
|
+
fe(this, e), this.bootstrapPromise = n, this.isEnabled = function () {
|
|
1353
1255
|
return we(i, void 0, void 0, de().mark(function e() {
|
|
1354
1256
|
return de().wrap(function (e) {
|
|
1355
1257
|
for (;;) switch (e.prev = e.next) {
|
|
@@ -1560,7 +1462,7 @@ var Fe,
|
|
|
1560
1462
|
},
|
|
1561
1463
|
He = function () {
|
|
1562
1464
|
function e(t) {
|
|
1563
|
-
|
|
1465
|
+
fe(this, e), this.maxBatchSize = t.maxBatchSize, this.logEventURL = t.logEventURL, setInterval(this.flush.bind(this), t.intervalDurationMs), this.batch = [];
|
|
1564
1466
|
}
|
|
1565
1467
|
return pe(e, [{
|
|
1566
1468
|
key: "logEvent",
|
|
@@ -1620,7 +1522,7 @@ var Ye = Promise.resolve({
|
|
|
1620
1522
|
var o = this,
|
|
1621
1523
|
s = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : Ye,
|
|
1622
1524
|
a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : Ge();
|
|
1623
|
-
|
|
1525
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this._pkceManager = n, this._passwordResetPKCEManager = i, this._config = s, this.dfpProtectedAuth = a, this.email = {
|
|
1624
1526
|
invite: function invite(e) {
|
|
1625
1527
|
return we(o, void 0, void 0, de().mark(function t() {
|
|
1626
1528
|
return de().wrap(function (t) {
|
|
@@ -1850,7 +1752,7 @@ var Ye = Promise.resolve({
|
|
|
1850
1752
|
}(),
|
|
1851
1753
|
Je = pe(function e(t, r) {
|
|
1852
1754
|
var n = this;
|
|
1853
|
-
|
|
1755
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.get = function () {
|
|
1854
1756
|
return we(n, void 0, void 0, de().mark(function e() {
|
|
1855
1757
|
var t;
|
|
1856
1758
|
return de().wrap(function (e) {
|
|
@@ -1959,7 +1861,7 @@ var Ye = Promise.resolve({
|
|
|
1959
1861
|
function e(t, r, n, i, o) {
|
|
1960
1862
|
var s = this,
|
|
1961
1863
|
a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : Ge();
|
|
1962
|
-
|
|
1864
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this._pkceManager = n, this._dynamicConfig = i, this._config = o, this.dfpProtectedAuth = a, this.saml = {
|
|
1963
1865
|
createConnection: function createConnection(e) {
|
|
1964
1866
|
return we(s, void 0, void 0, de().mark(function t() {
|
|
1965
1867
|
return de().wrap(function (t) {
|
|
@@ -2228,7 +2130,7 @@ var Ye = Promise.resolve({
|
|
|
2228
2130
|
}(),
|
|
2229
2131
|
Xe = pe(function e(t, r) {
|
|
2230
2132
|
var n = this;
|
|
2231
|
-
|
|
2133
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.get = function () {
|
|
2232
2134
|
return we(n, void 0, void 0, de().mark(function e() {
|
|
2233
2135
|
var t;
|
|
2234
2136
|
return de().wrap(function (e) {
|
|
@@ -2439,7 +2341,7 @@ var Ye = Promise.resolve({
|
|
|
2439
2341
|
function e(t, r, n, i, o) {
|
|
2440
2342
|
var s = this,
|
|
2441
2343
|
a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : Ge();
|
|
2442
|
-
|
|
2344
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this._pkceManager = n, this._dynamicConfig = i, this._config = o, this.dfpProtectedAuth = a, this.discovery = {
|
|
2443
2345
|
authenticate: function authenticate(e) {
|
|
2444
2346
|
return we(s, void 0, void 0, de().mark(function t() {
|
|
2445
2347
|
var r, n, i, o, s, a;
|
|
@@ -2647,7 +2549,7 @@ var Ye = Promise.resolve({
|
|
|
2647
2549
|
Qe = function () {
|
|
2648
2550
|
function e(t, r) {
|
|
2649
2551
|
var n = this;
|
|
2650
|
-
|
|
2552
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.getSync = function () {
|
|
2651
2553
|
return n._subscriptionService.getSession();
|
|
2652
2554
|
}, this.onChange = function (e) {
|
|
2653
2555
|
return n._subscriptionService.subscribeToState(function (t) {
|
|
@@ -2774,7 +2676,7 @@ var Ye = Promise.resolve({
|
|
|
2774
2676
|
}(),
|
|
2775
2677
|
et = pe(function e(t, r) {
|
|
2776
2678
|
var n = this;
|
|
2777
|
-
|
|
2679
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.organizations = {
|
|
2778
2680
|
list: function list() {
|
|
2779
2681
|
return we(n, void 0, void 0, de().mark(function e() {
|
|
2780
2682
|
return de().wrap(function (e) {
|
|
@@ -2902,7 +2804,7 @@ Promise.resolve({
|
|
|
2902
2804
|
var tt = pe(function e(t, r) {
|
|
2903
2805
|
var n = this,
|
|
2904
2806
|
i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ge();
|
|
2905
|
-
|
|
2807
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.dfpProtectedAuth = i, this.sms = {
|
|
2906
2808
|
send: function send(e) {
|
|
2907
2809
|
return we(n, void 0, void 0, de().mark(function t() {
|
|
2908
2810
|
var r, n, i;
|
|
@@ -2987,7 +2889,7 @@ var tt = pe(function e(t, r) {
|
|
|
2987
2889
|
rt = function () {
|
|
2988
2890
|
function e(t, r) {
|
|
2989
2891
|
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ge();
|
|
2990
|
-
|
|
2892
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.dfpProtectedAuth = n;
|
|
2991
2893
|
}
|
|
2992
2894
|
return pe(e, [{
|
|
2993
2895
|
key: "create",
|
|
@@ -3077,7 +2979,7 @@ var tt = pe(function e(t, r) {
|
|
|
3077
2979
|
nt = function () {
|
|
3078
2980
|
function e(t, r) {
|
|
3079
2981
|
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Ge();
|
|
3080
|
-
|
|
2982
|
+
fe(this, e), this._networkClient = t, this._subscriptionService = r, this.dfpProtectedAuth = n;
|
|
3081
2983
|
}
|
|
3082
2984
|
return pe(e, [{
|
|
3083
2985
|
key: "recover",
|
|
@@ -3177,7 +3079,7 @@ var tt = pe(function e(t, r) {
|
|
|
3177
3079
|
it = function () {
|
|
3178
3080
|
function e(t, r, n) {
|
|
3179
3081
|
var i = this;
|
|
3180
|
-
|
|
3082
|
+
fe(this, e), this._subscriptionService = n, this.isAuthorizedSync = function (e, t) {
|
|
3181
3083
|
var r;
|
|
3182
3084
|
return !!(null === (r = i.cachedPolicy) || void 0 === r ? void 0 : r.callerIsAuthorized(i.roleIds(), e, t));
|
|
3183
3085
|
}, this.isAuthorized = function (e, t) {
|
|
@@ -3208,7 +3110,7 @@ var tt = pe(function e(t, r) {
|
|
|
3208
3110
|
ot = function () {
|
|
3209
3111
|
function e(t, r) {
|
|
3210
3112
|
var n = this;
|
|
3211
|
-
|
|
3113
|
+
fe(this, e), this._subscriptionService = t, this._headlessSessionClient = r, this._onDataChange = function (e) {
|
|
3212
3114
|
(null == e ? void 0 : e.session) ? n.scheduleBackgroundRefresh() : n.cancelBackgroundRefresh();
|
|
3213
3115
|
}, this._reauthenticateWithBackoff = function () {
|
|
3214
3116
|
return we(n, void 0, void 0, de().mark(function t() {
|
|
@@ -3293,7 +3195,7 @@ var st,
|
|
|
3293
3195
|
mt = function () {
|
|
3294
3196
|
function e(t, r) {
|
|
3295
3197
|
var n = this;
|
|
3296
|
-
|
|
3198
|
+
fe(this, e), this.roles = t, this.resources = r, this.rolesByID = {}, t.forEach(function (e) {
|
|
3297
3199
|
return n.rolesByID[e.role_id] = e;
|
|
3298
3200
|
});
|
|
3299
3201
|
}
|
|
@@ -3371,11 +3273,10 @@ function vt(e, t, r, n) {
|
|
|
3371
3273
|
}(dt || (dt = {}));
|
|
3372
3274
|
var bt = /*#__PURE__*/function (_Error) {
|
|
3373
3275
|
_inherits(bt, _Error);
|
|
3374
|
-
var _super = _createSuper(bt);
|
|
3375
3276
|
function bt(e, t) {
|
|
3376
3277
|
var _this;
|
|
3377
3278
|
_classCallCheck(this, bt);
|
|
3378
|
-
_this =
|
|
3279
|
+
_this = _callSuper(this, bt), _this.name = "StytchSDKUsageError", _this.message = "Invalid call to ".concat(e, "\n") + t;
|
|
3379
3280
|
return _this;
|
|
3380
3281
|
}
|
|
3381
3282
|
return _createClass(bt);
|
|
@@ -4098,7 +3999,7 @@ var Tt = /*#__PURE__*/function () {
|
|
|
4098
3999
|
},
|
|
4099
4000
|
sdk: {
|
|
4100
4001
|
identifier: "Stytch.js Javascript SDK",
|
|
4101
|
-
version: "4.
|
|
4002
|
+
version: "4.5.0"
|
|
4102
4003
|
}
|
|
4103
4004
|
});
|
|
4104
4005
|
}
|
|
@@ -4406,13 +4307,24 @@ var Rt = function e(t, r) {
|
|
|
4406
4307
|
path: "/"
|
|
4407
4308
|
});
|
|
4408
4309
|
var Bt = function Bt(e) {
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
}
|
|
4412
|
-
|
|
4413
|
-
function
|
|
4310
|
+
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
4311
|
+
return "stytch_sdk_state_".concat(e).concat(t ? "::".concat(t) : "");
|
|
4312
|
+
},
|
|
4313
|
+
Lt = new Map(),
|
|
4314
|
+
Mt = function Mt(e) {
|
|
4315
|
+
clearTimeout(Lt.get(e));
|
|
4316
|
+
},
|
|
4317
|
+
Ft = function Ft(e, t, r) {
|
|
4318
|
+
Mt(e);
|
|
4319
|
+
var n = setTimeout(function () {
|
|
4320
|
+
void 0 === Rt.get(e) && Rt.set(e, t, r);
|
|
4321
|
+
}, 10);
|
|
4322
|
+
return Lt.set(e, n), Rt.set(e, t, r);
|
|
4323
|
+
};
|
|
4324
|
+
var jt = /*#__PURE__*/function () {
|
|
4325
|
+
function jt(e, t) {
|
|
4414
4326
|
var _this4 = this;
|
|
4415
|
-
_classCallCheck(this,
|
|
4327
|
+
_classCallCheck(this, jt);
|
|
4416
4328
|
this.browserSessionStorage = {
|
|
4417
4329
|
getItem: function getItem(e) {
|
|
4418
4330
|
return sessionStorage.getItem(Bt(_this4.publicToken, e));
|
|
@@ -4434,7 +4346,7 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4434
4346
|
}
|
|
4435
4347
|
this.state = n;
|
|
4436
4348
|
}
|
|
4437
|
-
_createClass(
|
|
4349
|
+
_createClass(jt, [{
|
|
4438
4350
|
key: "opaqueTokenCookieName",
|
|
4439
4351
|
get: function get() {
|
|
4440
4352
|
var e;
|
|
@@ -4472,14 +4384,14 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4472
4384
|
var o = e.state,
|
|
4473
4385
|
s = e.session_token,
|
|
4474
4386
|
a = e.session_jwt,
|
|
4475
|
-
c =
|
|
4387
|
+
c = jt.generateCookieOpts({
|
|
4476
4388
|
expiresAt: null !== (r = null === (t = null == o ? void 0 : o.session) || void 0 === t ? void 0 : t.expires_at) && void 0 !== r ? r : "",
|
|
4477
4389
|
availableToSubdomains: this._cookieAvailableToSubdomains,
|
|
4478
4390
|
path: this._cookiePath,
|
|
4479
4391
|
domain: this._domain
|
|
4480
4392
|
});
|
|
4481
|
-
|
|
4482
|
-
var u =
|
|
4393
|
+
Ft(this.opaqueTokenCookieName, s, c), Ft(this.jwtCookieName, a, c);
|
|
4394
|
+
var u = jt.generateCookieOpts({
|
|
4483
4395
|
expiresAt: null !== (i = null === (n = null == o ? void 0 : o.session) || void 0 === n ? void 0 : n.expires_at) && void 0 !== i ? i : "",
|
|
4484
4396
|
availableToSubdomains: !this._cookieAvailableToSubdomains,
|
|
4485
4397
|
path: this._cookiePath,
|
|
@@ -4491,13 +4403,13 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4491
4403
|
key: "writeIntermediateSessionTokenCookie",
|
|
4492
4404
|
value: function writeIntermediateSessionTokenCookie(e) {
|
|
4493
4405
|
var t = new Date(Date.now() + 6e5),
|
|
4494
|
-
r =
|
|
4406
|
+
r = jt.generateCookieOpts({
|
|
4495
4407
|
expiresAt: t.toString(),
|
|
4496
4408
|
availableToSubdomains: this._cookieAvailableToSubdomains,
|
|
4497
4409
|
path: this._cookiePath,
|
|
4498
4410
|
domain: this._domain
|
|
4499
4411
|
});
|
|
4500
|
-
|
|
4412
|
+
Ft(this.istCookieName, e, r);
|
|
4501
4413
|
}
|
|
4502
4414
|
}, {
|
|
4503
4415
|
key: "removeSessionCookie",
|
|
@@ -4516,7 +4428,7 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4516
4428
|
[!0, !1].forEach(function (t) {
|
|
4517
4429
|
[_this5._cookiePath, null].forEach(function (r) {
|
|
4518
4430
|
[_this5._domain, null].forEach(function (n) {
|
|
4519
|
-
var i =
|
|
4431
|
+
var i = jt.generateCookieOpts({
|
|
4520
4432
|
expiresAt: new Date(0).toString(),
|
|
4521
4433
|
availableToSubdomains: t,
|
|
4522
4434
|
path: r,
|
|
@@ -4527,7 +4439,7 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4527
4439
|
});
|
|
4528
4440
|
});
|
|
4529
4441
|
});
|
|
4530
|
-
});
|
|
4442
|
+
}), e.forEach(Mt);
|
|
4531
4443
|
}
|
|
4532
4444
|
}, {
|
|
4533
4445
|
key: "syncToLocalStorage",
|
|
@@ -4572,31 +4484,30 @@ var Lt = /*#__PURE__*/function () {
|
|
|
4572
4484
|
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;
|
|
4573
4485
|
}
|
|
4574
4486
|
}]);
|
|
4575
|
-
return
|
|
4487
|
+
return jt;
|
|
4576
4488
|
}();
|
|
4577
|
-
var
|
|
4578
|
-
_inherits(
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
return _super2.apply(this, arguments);
|
|
4489
|
+
var Kt = /*#__PURE__*/function (_jt) {
|
|
4490
|
+
_inherits(Kt, _jt);
|
|
4491
|
+
function Kt() {
|
|
4492
|
+
_classCallCheck(this, Kt);
|
|
4493
|
+
return _callSuper(this, Kt, arguments);
|
|
4583
4494
|
}
|
|
4584
|
-
return _createClass(
|
|
4585
|
-
}(
|
|
4586
|
-
var
|
|
4587
|
-
|
|
4495
|
+
return _createClass(Kt);
|
|
4496
|
+
}(jt);
|
|
4497
|
+
var Nt = Symbol["for"]("__stytch_b2b_DataLayer"),
|
|
4498
|
+
zt = function zt(e, t) {
|
|
4588
4499
|
var r = function () {
|
|
4589
4500
|
var e = window;
|
|
4590
|
-
return e[
|
|
4501
|
+
return e[Nt] || (e[Nt] = {}), e[Nt];
|
|
4591
4502
|
}();
|
|
4592
|
-
return r[e] || (r[e] = new
|
|
4503
|
+
return r[e] || (r[e] = new Kt(e, t)), r[e];
|
|
4593
4504
|
},
|
|
4594
|
-
|
|
4505
|
+
Ut = function Ut(e, t) {
|
|
4595
4506
|
Object.values(e).forEach(function (e) {
|
|
4596
4507
|
return e(t);
|
|
4597
4508
|
});
|
|
4598
4509
|
},
|
|
4599
|
-
|
|
4510
|
+
qt = function () {
|
|
4600
4511
|
var e = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).KEYS_TO_EXCLUDE,
|
|
4601
4512
|
t = void 0 === e ? [] : e;
|
|
4602
4513
|
return function e(r, n) {
|
|
@@ -4615,10 +4526,10 @@ var Ft = Symbol["for"]("__stytch_b2b_DataLayer"),
|
|
|
4615
4526
|
}({
|
|
4616
4527
|
KEYS_TO_EXCLUDE: ["last_accessed_at"]
|
|
4617
4528
|
});
|
|
4618
|
-
var
|
|
4619
|
-
function
|
|
4529
|
+
var Wt = /*#__PURE__*/function () {
|
|
4530
|
+
function Wt(e, t) {
|
|
4620
4531
|
var _this7 = this;
|
|
4621
|
-
_classCallCheck(this,
|
|
4532
|
+
_classCallCheck(this, Wt);
|
|
4622
4533
|
this._publicToken = e, this._datalayer = t, this._listen = function (e) {
|
|
4623
4534
|
if (e.key !== Bt(_this7._publicToken)) return;
|
|
4624
4535
|
var t = null === e.newValue || "null" === e.newValue ? null : JSON.parse(e.newValue);
|
|
@@ -4628,7 +4539,7 @@ var zt = /*#__PURE__*/function () {
|
|
|
4628
4539
|
r = _this$_datalayer$read.session_token;
|
|
4629
4540
|
r || this.destroySession();
|
|
4630
4541
|
}
|
|
4631
|
-
_createClass(
|
|
4542
|
+
_createClass(Wt, [{
|
|
4632
4543
|
key: "getTokens",
|
|
4633
4544
|
value: function getTokens() {
|
|
4634
4545
|
var _this$_datalayer$read2 = this._datalayer.readSessionCookie(),
|
|
@@ -4666,7 +4577,7 @@ var zt = /*#__PURE__*/function () {
|
|
|
4666
4577
|
r = null === e.state ? null : Object.assign(Object.assign({}, this._datalayer.state), e.state);
|
|
4667
4578
|
this._datalayer.state = r;
|
|
4668
4579
|
var n = e.state ? Object.keys(e.state) : [];
|
|
4669
|
-
!this._datalayer.markStateKeysUpdated(n) &&
|
|
4580
|
+
!this._datalayer.markStateKeysUpdated(n) && qt(t, r) || Ut(this._datalayer.subscriptions, r);
|
|
4670
4581
|
}
|
|
4671
4582
|
}, {
|
|
4672
4583
|
key: "updateStateAndTokens",
|
|
@@ -4681,8 +4592,8 @@ var zt = /*#__PURE__*/function () {
|
|
|
4681
4592
|
this._datalayer.state = r;
|
|
4682
4593
|
var n = e ? Object.keys(e) : [],
|
|
4683
4594
|
i = this._datalayer.markStateKeysUpdated(n),
|
|
4684
|
-
o = !
|
|
4685
|
-
(i || o) && (
|
|
4595
|
+
o = !qt(t, r);
|
|
4596
|
+
(i || o) && (Ut(this._datalayer.subscriptions, r), o && this._datalayer.syncToLocalStorage());
|
|
4686
4597
|
}
|
|
4687
4598
|
}, {
|
|
4688
4599
|
key: "updateTokens",
|
|
@@ -4722,15 +4633,14 @@ var zt = /*#__PURE__*/function () {
|
|
|
4722
4633
|
return null;
|
|
4723
4634
|
}
|
|
4724
4635
|
}]);
|
|
4725
|
-
return
|
|
4636
|
+
return Wt;
|
|
4726
4637
|
}();
|
|
4727
|
-
var
|
|
4728
|
-
_inherits(
|
|
4729
|
-
|
|
4730
|
-
function Ut() {
|
|
4638
|
+
var Gt = /*#__PURE__*/function (_Wt) {
|
|
4639
|
+
_inherits(Gt, _Wt);
|
|
4640
|
+
function Gt() {
|
|
4731
4641
|
var _this8;
|
|
4732
|
-
_classCallCheck(this,
|
|
4733
|
-
_this8 =
|
|
4642
|
+
_classCallCheck(this, Gt);
|
|
4643
|
+
_this8 = _callSuper(this, Gt, arguments), _this8.updateMember = function (e) {
|
|
4734
4644
|
return _this8.updateState({
|
|
4735
4645
|
member: e
|
|
4736
4646
|
});
|
|
@@ -4750,12 +4660,12 @@ var Ut = /*#__PURE__*/function (_zt) {
|
|
|
4750
4660
|
};
|
|
4751
4661
|
return _this8;
|
|
4752
4662
|
}
|
|
4753
|
-
return _createClass(
|
|
4754
|
-
}(
|
|
4755
|
-
var
|
|
4756
|
-
var
|
|
4663
|
+
return _createClass(Gt);
|
|
4664
|
+
}(Wt);
|
|
4665
|
+
var Ht = Symbol["for"]("stytch__internal_b2b");
|
|
4666
|
+
var Yt = /*#__PURE__*/_createClass(function Yt(e, t) {
|
|
4757
4667
|
var _this9 = this;
|
|
4758
|
-
_classCallCheck(this,
|
|
4668
|
+
_classCallCheck(this, Yt);
|
|
4759
4669
|
var r;
|
|
4760
4670
|
!function (e) {
|
|
4761
4671
|
if ("undefined" == typeof window) throw new Error("The ".concat(e, " is not compatible with server-side environments.\nIf using nextjs, use the create").concat(e, " method instead.\n```\n").concat("import { createStytchB2BHeadlessClient } from '@stytch/nextjs/b2b';\n \n const stytch = createStytchB2BHeadlessClient('public-token-...');\n ", "\n```\n"));
|
|
@@ -4772,7 +4682,7 @@ var Wt = /*#__PURE__*/_createClass(function Wt(e, t) {
|
|
|
4772
4682
|
}
|
|
4773
4683
|
};
|
|
4774
4684
|
var o, s, a, c, u, l, d, h, p, _, f;
|
|
4775
|
-
this._dataLayer =
|
|
4685
|
+
this._dataLayer = zt(e, n), this._subscriptionService = new Gt(e, this._dataLayer);
|
|
4776
4686
|
var m = new Et(this._dataLayer, "passwords");
|
|
4777
4687
|
this._networkClient = new Tt(e, this._dataLayer, i.endpoints.sdkBackendURL, function () {
|
|
4778
4688
|
var e, t, r, n;
|
|
@@ -4803,7 +4713,7 @@ var Wt = /*#__PURE__*/_createClass(function Wt(e, t) {
|
|
|
4803
4713
|
}
|
|
4804
4714
|
});
|
|
4805
4715
|
(function (e, t) {
|
|
4806
|
-
Object.assign(e, _defineProperty({},
|
|
4716
|
+
Object.assign(e, _defineProperty({}, Ht, t));
|
|
4807
4717
|
})(this, {
|
|
4808
4718
|
bootstrap: v,
|
|
4809
4719
|
publicToken: e,
|
|
@@ -4812,4 +4722,4 @@ var Wt = /*#__PURE__*/_createClass(function Wt(e, t) {
|
|
|
4812
4722
|
networkClient: this._networkClient
|
|
4813
4723
|
});
|
|
4814
4724
|
});
|
|
4815
|
-
export { g as AuthFlowType, y as B2BOAuthProviders, b as B2BProducts, X as BiometricsFailedError, B as BiometricsUnavailableError, H as ChallengeSigningFailedError, N as DeviceCredentialsNotAllowedError, V as FailedCodeChallengeError, $ as FailedToDecryptDataError, I as InternalError, W as InvalidAuthorizationCredentialError, te as InvalidCredentialTypeError, Q as InvalidRedirectSchemeError, Z as InvalidStartUrlError, ne as JSONDataNotConvertibleToStringError, L as KeyInvalidatedError, M as KeystoreUnavailableError, re as MissingAttestationObjectError, q as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, U as MissingPKCEError, G as MissingPublicKeyError, ee as MissingUrlError, F as NoBiometricsEnrolledError, R as NoBiometricsRegistrationError, D as NoCurrentSessionError, p as OAuthProviders, m as OTPMethods, f as OneTapPositions, oe as PasskeysInvalidEncoding, J as PasskeysUnsupportedError, h as Products, ie as RandomNumberGenerationFailed, k as SDKAPIUnreachableError, Y as SDKNotConfiguredError, E as StytchAPIError, O as StytchAPISchemaError, T as StytchAPIUnreachableError,
|
|
4725
|
+
export { g as AuthFlowType, y as B2BOAuthProviders, b as B2BProducts, X as BiometricsFailedError, B as BiometricsUnavailableError, H as ChallengeSigningFailedError, N as DeviceCredentialsNotAllowedError, V as FailedCodeChallengeError, $ as FailedToDecryptDataError, I as InternalError, W as InvalidAuthorizationCredentialError, te as InvalidCredentialTypeError, Q as InvalidRedirectSchemeError, Z as InvalidStartUrlError, ne as JSONDataNotConvertibleToStringError, L as KeyInvalidatedError, M as KeystoreUnavailableError, re as MissingAttestationObjectError, q as MissingAuthorizationCredentialIDTokenError, z as MissingGoogleClientIDError, U as MissingPKCEError, G as MissingPublicKeyError, ee as MissingUrlError, F as NoBiometricsEnrolledError, R as NoBiometricsRegistrationError, D as NoCurrentSessionError, p as OAuthProviders, m as OTPMethods, f as OneTapPositions, oe as PasskeysInvalidEncoding, J as PasskeysUnsupportedError, h as Products, ie as RandomNumberGenerationFailed, k as SDKAPIUnreachableError, Y as SDKNotConfiguredError, E as StytchAPIError, O as StytchAPISchemaError, T as StytchAPIUnreachableError, Yt as StytchB2BHeadlessClient, A as StytchError, v as StytchEventType, P as StytchSDKAPIError, x as StytchSDKError, S as StytchSDKSchemaError, w as StytchSDKUsageError, C as UNRECOVERABLE_ERROR_TYPES, j as UserCancellationError, K as UserLockedOutError, _ as Wallets, se as errorToStytchError };
|