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:
Every widget has an optional parameter called settings
.
Name | Type | Required | Default | Description |
---|---|---|---|---|
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:
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
Name | Type | Required | Default | Description |
---|---|---|---|---|
onClose |
| Close callback | ||
onError |
| Error callback | ||
onSuccess |
| Success callback |
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
Name | Type | Required | Default | Description |
---|---|---|---|---|
onClose |
| Close callback | ||
onError |
| Error callback |
Last updated