@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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -11
package/dist/index.js
CHANGED
|
@@ -9773,8 +9773,8 @@ var AUTHENTICATOR_SELECTION_CROSS_DEVICE = {
|
|
|
9773
9773
|
residentKey: "required",
|
|
9774
9774
|
authenticatorAttachment: "cross-platform"
|
|
9775
9775
|
};
|
|
9776
|
-
function getAuthenticatorSelection() {
|
|
9777
|
-
if (shouldForceCrossDevice()) {
|
|
9776
|
+
function getAuthenticatorSelection(options) {
|
|
9777
|
+
if (shouldForceCrossDevice() && !options?.allowPlatform) {
|
|
9778
9778
|
return AUTHENTICATOR_SELECTION_CROSS_DEVICE;
|
|
9779
9779
|
}
|
|
9780
9780
|
return AUTHENTICATOR_SELECTION;
|
|
@@ -19696,7 +19696,7 @@ async function enrollPasskey(params) {
|
|
|
19696
19696
|
};
|
|
19697
19697
|
const prfSalt = deriveWrapKey(tempPrfInput);
|
|
19698
19698
|
const displayName = buildDisplayName(userEmail, userEvmAddress, userId);
|
|
19699
|
-
const authenticatorSelection = getAuthenticatorSelection();
|
|
19699
|
+
const authenticatorSelection = getAuthenticatorSelection({ allowPlatform: true });
|
|
19700
19700
|
const hints = getWebAuthnHints();
|
|
19701
19701
|
const publicKeyCredentialCreationOptions = {
|
|
19702
19702
|
challenge: challenge2,
|
|
@@ -21115,7 +21115,7 @@ async function completeMigration(params) {
|
|
|
21115
21115
|
credentialId: tempCredentialId
|
|
21116
21116
|
};
|
|
21117
21117
|
const prfSalt = deriveWrapKey(tempPrfInput);
|
|
21118
|
-
const authenticatorSelection = getAuthenticatorSelection();
|
|
21118
|
+
const authenticatorSelection = getAuthenticatorSelection({ allowPlatform: true });
|
|
21119
21119
|
const hints = getWebAuthnHints();
|
|
21120
21120
|
const publicKeyCredentialCreationOptions = {
|
|
21121
21121
|
challenge: challenge2,
|