Recovery Kit

Recovery Kit Widgets and Modals

Get Method Widgets and Modals

To use the widgets in React components you need to import the Widget component:

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

Every widget has an optional parameter called settings.

NameTypeRequiredDefaultDescription

fullScreen

Boolean

true

Should widget be shown fullscreen

hideMenu

Boolean

true

Deprecated

preventClose

Boolean

true

Hides close button

You can provide them to the widget like this:

<Widget settings={{hideMenu: false}}>

Create Recovery Kit

Description

Creates a social login for the user using their Google SSO and a password (2FA). The user will get a widget to connect their Google account to their wallet. Next time the user will want to recover their wallet they will asked to provide their SSO instead of using their recovery phrase.

Parameters

NameTypeRequiredDefaultDescription

onClose

() => void

Close callback

onError

() => void

Error callback

onSuccess

() => void

Success callback

Usage Example

<Widget.Wallet.CreateRecovery />

Show recovery phrase

Description

Shows a widget where the user can see his recovery phrase and a button to save the save the recovery phrase to their Google drive. Using the button for saving the recovery phrase to the google drive will set a flag that the platform can fetch using Get recovery status

Parameters

NameTypeRequiredDefaultDescription

onClose

() => void

Close callback

onError

() => void

Error callback

Usage Example

<Widget.Wallet.RecoveryPhrase />

Last updated