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 for verifying a new account with a verification code
useVerifyNewAccount
useSignUpOrLogIn
AuthStateVerify
import { useVerifyNewAccount } from "@getpara/react-native-wallet";
import { useVerifyNewAccount } from "@getpara/react-native-wallet"; import { useState } from "react"; import { View, TextInput, Button } from "react-native"; function VerifyScreen() { const [code, setCode] = useState(""); const { verifyNewAccountAsync, isPending } = useVerifyNewAccount(); const handleVerify = async () => { try { await verifyNewAccountAsync({ verificationCode: code }); // User is now logged in and wallets are being created } catch (err) { console.error(err); } }; return ( <View> <TextInput value={code} onChangeText={setCode} placeholder="Enter code" keyboardType="number-pad" /> <Button title={isPending ? "Verifying..." : "Verify"} onPress={handleVerify} disabled={isPending} /> </View> ); }