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 setting up two-factor authentication
useSetup2fa
useEnable2fa
import { useSetup2fa } from "@getpara/react-native-wallet";
import { useSetup2fa } from "@getpara/react-native-wallet"; import { View, Text, Button } from "react-native"; function Setup2faScreen() { const { setup2faAsync, data, isPending } = useSetup2fa(); return ( <View> {data && ( <View> <Text selectable>{data.uri}</Text> <Text>Secret: {data.secret}</Text> </View> )} <Button title={isPending ? "Loading..." : "Set Up 2FA"} onPress={() => setup2faAsync()} disabled={isPending} /> </View> ); }