@swype-org/react-sdk 0.1.261 → 0.1.262
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 +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8662,16 +8662,25 @@ function useMobilePollingEffect(deps) {
|
|
|
8662
8662
|
handlingMobileReturnRef.current = false;
|
|
8663
8663
|
return;
|
|
8664
8664
|
}
|
|
8665
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null && mobileSetupFlowRef.current) {
|
|
8666
|
+
return;
|
|
8667
|
+
}
|
|
8665
8668
|
if (handlingMobileReturnRef.current) return;
|
|
8666
8669
|
const polledTransfer = polling.transfer;
|
|
8667
8670
|
if (!polledTransfer || polledTransfer.status !== "AUTHORIZED") return;
|
|
8668
8671
|
void handleAuthorizedMobileReturnRef.current(polledTransfer, mobileSetupFlowRef.current);
|
|
8669
|
-
}, [
|
|
8672
|
+
}, [
|
|
8673
|
+
state.mobileFlow,
|
|
8674
|
+
state.isGuestFlow,
|
|
8675
|
+
state.guestPreauthSessionId,
|
|
8676
|
+
polling.transfer,
|
|
8677
|
+
handlingMobileReturnRef,
|
|
8678
|
+
mobileSetupFlowRef
|
|
8679
|
+
]);
|
|
8670
8680
|
useEffect(() => {
|
|
8671
8681
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
8672
8682
|
if (!setupAccountIdRef.current) return;
|
|
8673
8683
|
if (!state.guestPreauthSessionId || !state.isGuestFlow) return;
|
|
8674
|
-
if (state.activeCredentialId) return;
|
|
8675
8684
|
const sessionId = state.guestPreauthSessionId;
|
|
8676
8685
|
let cancelled = false;
|
|
8677
8686
|
let completedGuestPreauth = false;
|
|
@@ -8746,7 +8755,6 @@ function useMobilePollingEffect(deps) {
|
|
|
8746
8755
|
};
|
|
8747
8756
|
}, [
|
|
8748
8757
|
state.mobileFlow,
|
|
8749
|
-
state.activeCredentialId,
|
|
8750
8758
|
state.guestPreauthSessionId,
|
|
8751
8759
|
state.isGuestFlow,
|
|
8752
8760
|
state.guestSessionToken,
|
|
@@ -8759,6 +8767,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8759
8767
|
]);
|
|
8760
8768
|
useEffect(() => {
|
|
8761
8769
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
8770
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null) return;
|
|
8762
8771
|
if (!state.activeCredentialId || !setupAccountIdRef.current) return;
|
|
8763
8772
|
const accountId = setupAccountIdRef.current;
|
|
8764
8773
|
const credentialId = state.activeCredentialId;
|
|
@@ -8847,6 +8856,8 @@ function useMobilePollingEffect(deps) {
|
|
|
8847
8856
|
};
|
|
8848
8857
|
}, [
|
|
8849
8858
|
state.mobileFlow,
|
|
8859
|
+
state.isGuestFlow,
|
|
8860
|
+
state.guestPreauthSessionId,
|
|
8850
8861
|
state.activeCredentialId,
|
|
8851
8862
|
apiBaseUrl,
|
|
8852
8863
|
reloadAccounts,
|