@turnkey/sdk-react 4.0.0 → 4.1.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.
|
@@ -240,7 +240,12 @@ var Auth = function Auth(_ref) {
|
|
|
240
240
|
case 21:
|
|
241
241
|
case 22:
|
|
242
242
|
_context2.next = 24;
|
|
243
|
-
return passkeyClient === null || passkeyClient === void 0 ? void 0 : passkeyClient.loginWithPasskey(
|
|
243
|
+
return passkeyClient === null || passkeyClient === void 0 ? void 0 : passkeyClient.loginWithPasskey({
|
|
244
|
+
sessionType: SessionType.READ_WRITE,
|
|
245
|
+
iframeClient: authIframeClient,
|
|
246
|
+
targetPublicKey: authIframeClient === null || authIframeClient === void 0 ? void 0 : authIframeClient.iframePublicKey,
|
|
247
|
+
expirationSeconds: (_authConfig$sessionLe = authConfig.sessionLengthSeconds) === null || _authConfig$sessionLe === void 0 ? void 0 : _authConfig$sessionLe.toString()
|
|
248
|
+
});
|
|
244
249
|
case 24:
|
|
245
250
|
_context2.next = 26;
|
|
246
251
|
return onAuthSuccess();
|
|
@@ -271,7 +276,12 @@ var Auth = function Auth(_ref) {
|
|
|
271
276
|
_context3.prev = 0;
|
|
272
277
|
setLoading("passkey");
|
|
273
278
|
_context3.next = 4;
|
|
274
|
-
return passkeyClient === null || passkeyClient === void 0 ? void 0 : passkeyClient.loginWithPasskey(
|
|
279
|
+
return passkeyClient === null || passkeyClient === void 0 ? void 0 : passkeyClient.loginWithPasskey({
|
|
280
|
+
sessionType: SessionType.READ_WRITE,
|
|
281
|
+
iframeClient: authIframeClient,
|
|
282
|
+
targetPublicKey: authIframeClient === null || authIframeClient === void 0 ? void 0 : authIframeClient.iframePublicKey,
|
|
283
|
+
expirationSeconds: (_authConfig$sessionLe2 = authConfig.sessionLengthSeconds) === null || _authConfig$sessionLe2 === void 0 ? void 0 : _authConfig$sessionLe2.toString()
|
|
284
|
+
});
|
|
275
285
|
case 4:
|
|
276
286
|
_context3.next = 6;
|
|
277
287
|
return onAuthSuccess();
|
|
@@ -473,7 +483,12 @@ var Auth = function Auth(_ref) {
|
|
|
473
483
|
return _context6.abrupt("return");
|
|
474
484
|
case 17:
|
|
475
485
|
_context6.next = 19;
|
|
476
|
-
return walletClient.loginWithWallet(
|
|
486
|
+
return walletClient.loginWithWallet({
|
|
487
|
+
sessionType: SessionType.READ_WRITE,
|
|
488
|
+
iframeClient: authIframeClient,
|
|
489
|
+
targetPublicKey: authIframeClient === null || authIframeClient === void 0 ? void 0 : authIframeClient.iframePublicKey,
|
|
490
|
+
expirationSeconds: (_authConfig$sessionLe3 = authConfig.sessionLengthSeconds) === null || _authConfig$sessionLe3 === void 0 ? void 0 : _authConfig$sessionLe3.toString()
|
|
491
|
+
});
|
|
477
492
|
case 19:
|
|
478
493
|
_context6.next = 21;
|
|
479
494
|
return onAuthSuccess();
|