useWaitForSignup hook polls until a new user’s signup is fully confirmed. Use it as part of a custom step-by-step auth flow after the verification code step.
Hook that polls until a signup flow is complete
useWaitForSignup hook polls until a new user’s signup is fully confirmed. Use it as part of a custom step-by-step auth flow after the verification code step.
import { useWaitForSignup } from "@getpara/react-native-wallet";
import { useWaitForSignup } from "@getpara/react-native-wallet";
function WaitingForSignup() {
const { waitForSignupAsync, isPending } = useWaitForSignup();
const handleWait = async () => {
try {
await waitForSignupAsync({});
// Signup complete — proceed to wallet creation
} catch (err) {
console.error(err);
}
};
return <Button title={isPending ? "Waiting..." : "Check Signup Status"} onPress={handleWait} disabled={isPending} />;
}