@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.cjs
CHANGED
|
@@ -5907,8 +5907,17 @@ function SwypePaymentInner({
|
|
|
5907
5907
|
};
|
|
5908
5908
|
const checkPasskey = async () => {
|
|
5909
5909
|
try {
|
|
5910
|
-
|
|
5911
|
-
|
|
5910
|
+
let token = null;
|
|
5911
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
5912
|
+
token = await getAccessToken();
|
|
5913
|
+
if (token || cancelled) break;
|
|
5914
|
+
await new Promise((r) => setTimeout(r, 1e3));
|
|
5915
|
+
}
|
|
5916
|
+
if (!token) {
|
|
5917
|
+
if (!cancelled) dispatch({ type: "NAVIGATE", step: "create-passkey" });
|
|
5918
|
+
return;
|
|
5919
|
+
}
|
|
5920
|
+
if (cancelled) return;
|
|
5912
5921
|
const { config } = await fetchUserConfig(apiBaseUrl, token);
|
|
5913
5922
|
if (cancelled) return;
|
|
5914
5923
|
const allPasskeys = config.passkeys ?? (config.passkey ? [config.passkey] : []);
|