To prompt users to set or upgrade recovery on their wallet, call the setWalletRecovery method from the useSetWalletRecovery hook.setWalletRecovery: async () => Promise<Wallet>
Users can reset their password using this method as well.
Usage
import {useSetWalletRecovery} from '@privy-io/react-auth';
const {setWalletRecovery} = useSetWalletRecovery();
Returns
A Promise for the linked account object for the created wallet.