Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
The useWaitForLogin hook polls the Para backend until a returning user’s login is confirmed. Use it as part of a custom step-by-step auth flow after useSignUpOrLogIn returns AuthStateLogin.
Import
import { useWaitForLogin } from "@getpara/react-native-wallet";
Usage
import { useWaitForLogin } from "@getpara/react-native-wallet";
function WaitingForLogin() {
const { waitForLoginAsync, isPending } = useWaitForLogin();
const handleWait = async () => {
try {
const result = await waitForLoginAsync({});
if (result.needsWallet) {
// Trigger wallet creation
}
} catch (err) {
console.error(err);
}
};
return <Button title={isPending ? "Waiting..." : "Check Login Status"} onPress={handleWait} disabled={isPending} />;
}