@swype-org/react-sdk 0.1.93 → 0.1.94

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/dist/index.js CHANGED
@@ -5947,12 +5947,18 @@ function SwypePaymentInner({
5947
5947
  return;
5948
5948
  }
5949
5949
  if (cancelled) return;
5950
+ const credentialIds = allPasskeys.map((p) => p.credentialId);
5951
+ let matched = null;
5950
5952
  if (isSafari() && isInCrossOriginIframe()) {
5951
- dispatch({ type: "NAVIGATE", step: "verify-passkey" });
5952
- return;
5953
+ matched = await findDevicePasskeyViaPopup({
5954
+ credentialIds,
5955
+ rpId: resolvePasskeyRpId(),
5956
+ authToken: token ?? void 0,
5957
+ apiBaseUrl
5958
+ });
5959
+ } else {
5960
+ matched = await findDevicePasskey(credentialIds);
5953
5961
  }
5954
- const credentialIds = allPasskeys.map((p) => p.credentialId);
5955
- const matched = await findDevicePasskey(credentialIds);
5956
5962
  if (cancelled) return;
5957
5963
  if (matched) {
5958
5964
  dispatch({ type: "PASSKEY_ACTIVATED", credentialId: matched });