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.
To prompt users to set or upgrade recovery on their wallet, call the recoverEmbeddedWallet method from the useRecoverEmbeddedWallet hook.recover: async ({recoveryMethod: 'user-passcode' | 'google-drive' | 'icloud', password?: string}) => Promise<void>
Users can reset their password using this method as well.
Usage
import {useRecoverEmbeddedWallet} from '@privy-io/expo';
const {recover} = useRecoverEmbeddedWallet();
Parameters
An enum representing the recovery method used for this user.
The password to use for recovery.
Returns
A Promise for the updated wallet object.