Skip to content

Cloud-based recovery

This guide explains how to set up cloud storage accounts for user-managed recovery of embedded wallets.

Start with a walkthrough of the user experience of password-based recovery, and continue to concrete configuration details below.

INFO

Currently, only Google Drive is supported for cloud-based recovery, but we are actively building support for iCloud as well.

User experience

Setting up Google Drive for user-managed recovery
Setting up Google Drive for user-managed recovery

Setup

When a user chooses Google Drive as their preferred option for user-managed recovery, the Privy modal will prompt the user to authorize access to their Google account. Upon success, Privy will store a recovery secret in the user's Google Drive.

Recovery

Once a user has set up Google Drive recovery, when they attempt to use the wallet on a new device or browser, Privy will automatically prompt the user to authorize access to their Google account.

Once the user successfully authorizes with Google, they can use the wallet on that device, and will not be prompted to authorize on that device again.

Integration

Configuration

To configure Google Drive as an option for user-managed recovery, follow the guide here to set up the correct settings in the Privy Dashboard.

Prompting users to set up Google Drive-based recovery

To require that users set up Google Drive-based recovery when they first create their wallet, visit the Embedded wallets page of the Privy Dashboard and navigate to the Recovery methods tab. Toggle the Require recovery method on wallet creation option on.

When this setting is on, users will be automatically be prompted to set up user-managed recovery when they create their wallet. Note that:

  • When setting up user-managed recovery, users can choose any of the recovery methods you have enabled in the Dashboard. This will include Google Drive and passwords.
  • If the user does not successfully set up Google Drive (or passwords) when creating their wallet, a wallet will not be created for them.

INFO

Privy does not currently support setting Google Drive as a user-managed recovery method after a wallet has already been created. We are actively building support for this flow.