Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook that polls until a login flow is complete
useWaitForLogin
useSignUpOrLogIn
AuthStateLogin
import { useWaitForLogin } from "@getpara/react-native-wallet";
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} />; }