Recovery Kit

Recovery Kit React & React Native Hooks

Import hooks

In order to use the function below, you need to import the hooks for React or React native.

Import React Hooks

import { hooks } from '@paytweed/frontend-sdk-react'

Get Recovery Kit status​

Description​

Returns the recovery status of the user's wallet by email or user ID. If the user created a recovery kit, the function will return recoveryKit.If the user saved their recovery phrase to their Google Drive, the function will return savedMnemonics. This function can be used to encourage the user to save his wallet information or create a social log-in to protect his wallet.

Data type​

string[]

Possible values are: recoveryKit, savedMnemonics

Usage​ Example

const { data, error, loading } = hooks.useWalletRecoveryStatus()

Last updated