@swype-org/react-sdk 0.1.269 → 0.1.271
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 +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6815,7 +6815,7 @@ function useAuthHandlers(dispatch, verificationTarget) {
|
|
|
6815
6815
|
handleResendLoginCode
|
|
6816
6816
|
};
|
|
6817
6817
|
}
|
|
6818
|
-
function usePasskeyHandlers(dispatch, apiBaseUrl, accounts, knownCredentialIds
|
|
6818
|
+
function usePasskeyHandlers(dispatch, apiBaseUrl, accounts, knownCredentialIds) {
|
|
6819
6819
|
const { user, getAccessToken } = usePrivy();
|
|
6820
6820
|
const checkingPasskeyRef = useRef(false);
|
|
6821
6821
|
const activateExistingCredential = useCallback(async (credentialId) => {
|
|
@@ -8676,7 +8676,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8676
8676
|
handlingMobileReturnRef.current = false;
|
|
8677
8677
|
return;
|
|
8678
8678
|
}
|
|
8679
|
-
if (state.isGuestFlow && state.guestPreauthSessionId != null
|
|
8679
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null) {
|
|
8680
8680
|
return;
|
|
8681
8681
|
}
|
|
8682
8682
|
if (handlingMobileReturnRef.current) return;
|
|
@@ -8692,9 +8692,9 @@ function useMobilePollingEffect(deps) {
|
|
|
8692
8692
|
mobileSetupFlowRef
|
|
8693
8693
|
]);
|
|
8694
8694
|
useEffect(() => {
|
|
8695
|
-
if (!state.mobileFlow || !
|
|
8696
|
-
|
|
8697
|
-
|
|
8695
|
+
if (!state.mobileFlow || !state.isGuestFlow || !state.guestPreauthSessionId || !state.guestPreauthAccountId) {
|
|
8696
|
+
return;
|
|
8697
|
+
}
|
|
8698
8698
|
const guestToken = state.guestSessionToken ?? loadMobileFlowState()?.guestSessionToken ?? null;
|
|
8699
8699
|
const preauthAccountId = state.guestPreauthAccountId;
|
|
8700
8700
|
const preauthSessionId = state.guestPreauthSessionId;
|
|
@@ -8783,9 +8783,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8783
8783
|
state.guestPreauthAccountId,
|
|
8784
8784
|
apiBaseUrl,
|
|
8785
8785
|
reloadAccounts,
|
|
8786
|
-
dispatch
|
|
8787
|
-
mobileSetupFlowRef,
|
|
8788
|
-
setupAccountIdRef
|
|
8786
|
+
dispatch
|
|
8789
8787
|
]);
|
|
8790
8788
|
useEffect(() => {
|
|
8791
8789
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
@@ -8892,6 +8890,8 @@ function useMobilePollingEffect(deps) {
|
|
|
8892
8890
|
useEffect(() => {
|
|
8893
8891
|
if (!state.mobileFlow) return;
|
|
8894
8892
|
if (handlingMobileReturnRef.current) return;
|
|
8893
|
+
const isGuestPostPayPreauthMobile = state.isGuestFlow && state.guestPreauthSessionId != null && state.guestPreauthAccountId != null;
|
|
8894
|
+
if (isGuestPostPayPreauthMobile) return;
|
|
8895
8895
|
const transferIdToResume = pollingTransferIdRef.current ?? state.transfer?.id;
|
|
8896
8896
|
if (!transferIdToResume) return;
|
|
8897
8897
|
if (!polling.isPolling) polling.startPolling(transferIdToResume);
|
|
@@ -8914,6 +8914,9 @@ function useMobilePollingEffect(deps) {
|
|
|
8914
8914
|
}, [
|
|
8915
8915
|
state.mobileFlow,
|
|
8916
8916
|
state.transfer?.id,
|
|
8917
|
+
state.isGuestFlow,
|
|
8918
|
+
state.guestPreauthSessionId,
|
|
8919
|
+
state.guestPreauthAccountId,
|
|
8917
8920
|
polling.isPolling,
|
|
8918
8921
|
polling.startPolling,
|
|
8919
8922
|
handlingMobileReturnRef,
|
|
@@ -9331,9 +9334,7 @@ function BlinkPaymentInner({
|
|
|
9331
9334
|
dispatch,
|
|
9332
9335
|
apiBaseUrl,
|
|
9333
9336
|
state.accounts,
|
|
9334
|
-
state.knownCredentialIds
|
|
9335
|
-
mobileFlowRefs.mobileSetupFlowRef,
|
|
9336
|
-
state.guestPreauthAccountId
|
|
9337
|
+
state.knownCredentialIds
|
|
9337
9338
|
);
|
|
9338
9339
|
const transfer = useTransferHandlers({
|
|
9339
9340
|
dispatch,
|