Set user-controlled recovery on the embedded wallet, and to attach callbacks to the wallet’s recovery events.
To prompt users to enroll an auth factor for new devices for their wallet, use the setWalletRecovery method from the useSetWalletRecovery hook:
Copy
Ask AI
setWalletRecovery: async () => Promise<void>
When invoked, this method will open a modal where the user can enroll an auth factor for new devices from the options (password, iCloud, Google Drive) you configured in the Dashboard.