@swype-org/react-sdk 0.1.152 → 0.1.154
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 +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6115,14 +6115,19 @@ function usePasskeyHandlers(dispatch, apiBaseUrl, accounts, knownCredentialIds,
|
|
|
6115
6115
|
try {
|
|
6116
6116
|
const token = await getAccessToken();
|
|
6117
6117
|
if (knownCredentialIds.length > 0) {
|
|
6118
|
-
const
|
|
6118
|
+
const directMatch = await findDevicePasskey(knownCredentialIds).catch(() => null);
|
|
6119
|
+
if (directMatch) {
|
|
6120
|
+
await activateExistingCredential(directMatch);
|
|
6121
|
+
return;
|
|
6122
|
+
}
|
|
6123
|
+
const popupMatch = await findDevicePasskeyViaPopup({
|
|
6119
6124
|
credentialIds: knownCredentialIds,
|
|
6120
6125
|
rpId: resolvePasskeyRpId(),
|
|
6121
6126
|
authToken: token ?? void 0,
|
|
6122
6127
|
apiBaseUrl
|
|
6123
6128
|
});
|
|
6124
|
-
if (
|
|
6125
|
-
await activateExistingCredential(
|
|
6129
|
+
if (popupMatch) {
|
|
6130
|
+
await activateExistingCredential(popupMatch);
|
|
6126
6131
|
return;
|
|
6127
6132
|
}
|
|
6128
6133
|
}
|