@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.cjs
CHANGED
|
@@ -6818,7 +6818,7 @@ function useAuthHandlers(dispatch, verificationTarget) {
|
|
|
6818
6818
|
handleResendLoginCode
|
|
6819
6819
|
};
|
|
6820
6820
|
}
|
|
6821
|
-
function usePasskeyHandlers(dispatch, apiBaseUrl, accounts, knownCredentialIds
|
|
6821
|
+
function usePasskeyHandlers(dispatch, apiBaseUrl, accounts, knownCredentialIds) {
|
|
6822
6822
|
const { user, getAccessToken } = reactAuth.usePrivy();
|
|
6823
6823
|
const checkingPasskeyRef = react.useRef(false);
|
|
6824
6824
|
const activateExistingCredential = react.useCallback(async (credentialId) => {
|
|
@@ -8679,7 +8679,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8679
8679
|
handlingMobileReturnRef.current = false;
|
|
8680
8680
|
return;
|
|
8681
8681
|
}
|
|
8682
|
-
if (state.isGuestFlow && state.guestPreauthSessionId != null
|
|
8682
|
+
if (state.isGuestFlow && state.guestPreauthSessionId != null) {
|
|
8683
8683
|
return;
|
|
8684
8684
|
}
|
|
8685
8685
|
if (handlingMobileReturnRef.current) return;
|
|
@@ -8695,9 +8695,9 @@ function useMobilePollingEffect(deps) {
|
|
|
8695
8695
|
mobileSetupFlowRef
|
|
8696
8696
|
]);
|
|
8697
8697
|
react.useEffect(() => {
|
|
8698
|
-
if (!state.mobileFlow || !
|
|
8699
|
-
|
|
8700
|
-
|
|
8698
|
+
if (!state.mobileFlow || !state.isGuestFlow || !state.guestPreauthSessionId || !state.guestPreauthAccountId) {
|
|
8699
|
+
return;
|
|
8700
|
+
}
|
|
8701
8701
|
const guestToken = state.guestSessionToken ?? loadMobileFlowState()?.guestSessionToken ?? null;
|
|
8702
8702
|
const preauthAccountId = state.guestPreauthAccountId;
|
|
8703
8703
|
const preauthSessionId = state.guestPreauthSessionId;
|
|
@@ -8786,9 +8786,7 @@ function useMobilePollingEffect(deps) {
|
|
|
8786
8786
|
state.guestPreauthAccountId,
|
|
8787
8787
|
apiBaseUrl,
|
|
8788
8788
|
reloadAccounts,
|
|
8789
|
-
dispatch
|
|
8790
|
-
mobileSetupFlowRef,
|
|
8791
|
-
setupAccountIdRef
|
|
8789
|
+
dispatch
|
|
8792
8790
|
]);
|
|
8793
8791
|
react.useEffect(() => {
|
|
8794
8792
|
if (!state.mobileFlow || !mobileSetupFlowRef.current) return;
|
|
@@ -8895,6 +8893,8 @@ function useMobilePollingEffect(deps) {
|
|
|
8895
8893
|
react.useEffect(() => {
|
|
8896
8894
|
if (!state.mobileFlow) return;
|
|
8897
8895
|
if (handlingMobileReturnRef.current) return;
|
|
8896
|
+
const isGuestPostPayPreauthMobile = state.isGuestFlow && state.guestPreauthSessionId != null && state.guestPreauthAccountId != null;
|
|
8897
|
+
if (isGuestPostPayPreauthMobile) return;
|
|
8898
8898
|
const transferIdToResume = pollingTransferIdRef.current ?? state.transfer?.id;
|
|
8899
8899
|
if (!transferIdToResume) return;
|
|
8900
8900
|
if (!polling.isPolling) polling.startPolling(transferIdToResume);
|
|
@@ -8917,6 +8917,9 @@ function useMobilePollingEffect(deps) {
|
|
|
8917
8917
|
}, [
|
|
8918
8918
|
state.mobileFlow,
|
|
8919
8919
|
state.transfer?.id,
|
|
8920
|
+
state.isGuestFlow,
|
|
8921
|
+
state.guestPreauthSessionId,
|
|
8922
|
+
state.guestPreauthAccountId,
|
|
8920
8923
|
polling.isPolling,
|
|
8921
8924
|
polling.startPolling,
|
|
8922
8925
|
handlingMobileReturnRef,
|
|
@@ -9334,9 +9337,7 @@ function BlinkPaymentInner({
|
|
|
9334
9337
|
dispatch,
|
|
9335
9338
|
apiBaseUrl,
|
|
9336
9339
|
state.accounts,
|
|
9337
|
-
state.knownCredentialIds
|
|
9338
|
-
mobileFlowRefs.mobileSetupFlowRef,
|
|
9339
|
-
state.guestPreauthAccountId
|
|
9340
|
+
state.knownCredentialIds
|
|
9340
9341
|
);
|
|
9341
9342
|
const transfer = useTransferHandlers({
|
|
9342
9343
|
dispatch,
|