@volr/react 0.1.132 → 0.1.133

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.cjs CHANGED
@@ -9797,8 +9797,8 @@ var AUTHENTICATOR_SELECTION_CROSS_DEVICE = {
9797
9797
  residentKey: "required",
9798
9798
  authenticatorAttachment: "cross-platform"
9799
9799
  };
9800
- function getAuthenticatorSelection() {
9801
- if (shouldForceCrossDevice()) {
9800
+ function getAuthenticatorSelection(options) {
9801
+ if (shouldForceCrossDevice() && !options?.allowPlatform) {
9802
9802
  return AUTHENTICATOR_SELECTION_CROSS_DEVICE;
9803
9803
  }
9804
9804
  return AUTHENTICATOR_SELECTION;
@@ -19720,7 +19720,7 @@ async function enrollPasskey(params) {
19720
19720
  };
19721
19721
  const prfSalt = sdkCore.deriveWrapKey(tempPrfInput);
19722
19722
  const displayName = buildDisplayName(userEmail, userEvmAddress, userId);
19723
- const authenticatorSelection = getAuthenticatorSelection();
19723
+ const authenticatorSelection = getAuthenticatorSelection({ allowPlatform: true });
19724
19724
  const hints = getWebAuthnHints();
19725
19725
  const publicKeyCredentialCreationOptions = {
19726
19726
  challenge: challenge2,
@@ -21139,7 +21139,7 @@ async function completeMigration(params) {
21139
21139
  credentialId: tempCredentialId
21140
21140
  };
21141
21141
  const prfSalt = sdkCore.deriveWrapKey(tempPrfInput);
21142
- const authenticatorSelection = getAuthenticatorSelection();
21142
+ const authenticatorSelection = getAuthenticatorSelection({ allowPlatform: true });
21143
21143
  const hints = getWebAuthnHints();
21144
21144
  const publicKeyCredentialCreationOptions = {
21145
21145
  challenge: challenge2,