Once a user has created an embedded wallet, when they attempt to use the wallet on a new device, the key material for their wallet must be transferred to that new device. This process is known as provisioning a new device.

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

wallet
Promise<Wallet>

A Promise for the linked account object for the created wallet.

Was this page helpful?