@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.cjs
CHANGED
|
@@ -8665,16 +8665,25 @@ function useMobilePollingEffect(deps) {
|
|
|
8665
8665
|
handlingMobileReturnRef.current = false;
|
|
8666
8666
|
return;
|
|
8667
8667
|
}
|
|
8668
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null && mobileSetupFlowRef.current) {
|
|
8669
|
+
return;
|
|
8670
|
+
}
|
|
8668
8671
|
if (handlingMobileReturnRef.current) return;
|
|
8669
8672
|
const polledTransfer = polling.transfer;
|
|
8670
8673
|
if (!polledTransfer || polledTransfer.status !== "AUTHORIZED") return;
|
|
8671
8674
|
void handleAuthorizedMobileReturnRef.current(polledTransfer, mobileSetupFlowRef.current);
|
|
8672
|
-
}, [
|
|
8675
|
+
}, [
|
|
8676
|
+
state.mobileFlow,
|
|
8677
|
+
state.isGuestFlow,
|
|
8678
|
+
state.guestPreauthSessionId,
|
|
8679
|
+
polling.transfer,
|
|
8680
|
+
handlingMobileReturnRef,
|
|
8681
|
+
mobileSetupFlowRef
|
|
8682
|
+
]);
|
|
8673
8683
|
react.useEffect(() => {
|
|
8674
8684
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
8675
8685
|
if (!setupAccountIdRef.current) return;
|
|
8676
8686
|
if (!state.guestPreauthSessionId || !state.isGuestFlow) return;
|
|
8677
|
-
if (state.activeCredentialId) return;
|
|
8678
8687
|
const sessionId = state.guestPreauthSessionId;
|
|
8679
8688
|
let cancelled = false;
|
|
8680
8689
|
let completedGuestPreauth = false;
|
|
@@ -8749,7 +8758,6 @@ function useMobilePollingEffect(deps) {
|
|
|
8749
8758
|
};
|
|
8750
8759
|
}, [
|
|
8751
8760
|
state.mobileFlow,
|
|
8752
|
-
state.activeCredentialId,
|
|
8753
8761
|
state.guestPreauthSessionId,
|
|
8754
8762
|
state.isGuestFlow,
|
|
8755
8763
|
state.guestSessionToken,
|
|
@@ -8762,6 +8770,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8762
8770
|
]);
|
|
8763
8771
|
react.useEffect(() => {
|
|
8764
8772
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
8773
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null) return;
|
|
8765
8774
|
if (!state.activeCredentialId || !setupAccountIdRef.current) return;
|
|
8766
8775
|
const accountId = setupAccountIdRef.current;
|
|
8767
8776
|
const credentialId = state.activeCredentialId;
|
|
@@ -8850,6 +8859,8 @@ function useMobilePollingEffect(deps) {
|
|
|
8850
8859
|
};
|
|
8851
8860
|
}, [
|
|
8852
8861
|
state.mobileFlow,
|
|
8862
|
+
state.isGuestFlow,
|
|
8863
|
+
state.guestPreauthSessionId,
|
|
8853
8864
|
state.activeCredentialId,
|
|
8854
8865
|
apiBaseUrl,
|
|
8855
8866
|
reloadAccounts,
|