@swype-org/react-sdk 0.1.90 → 0.1.91
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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5904,8 +5904,17 @@ function SwypePaymentInner({
|
|
|
5904
5904
|
};
|
|
5905
5905
|
const checkPasskey = async () => {
|
|
5906
5906
|
try {
|
|
5907
|
-
|
|
5908
|
-
|
|
5907
|
+
let token = null;
|
|
5908
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
5909
|
+
token = await getAccessToken();
|
|
5910
|
+
if (token || cancelled) break;
|
|
5911
|
+
await new Promise((r) => setTimeout(r, 1e3));
|
|
5912
|
+
}
|
|
5913
|
+
if (!token) {
|
|
5914
|
+
if (!cancelled) dispatch({ type: "NAVIGATE", step: "create-passkey" });
|
|
5915
|
+
return;
|
|
5916
|
+
}
|
|
5917
|
+
if (cancelled) return;
|
|
5909
5918
|
const { config } = await fetchUserConfig(apiBaseUrl, token);
|
|
5910
5919
|
if (cancelled) return;
|
|
5911
5920
|
const allPasskeys = config.passkeys ?? (config.passkey ? [config.passkey] : []);
|