showAccountRecovery
Description
Show the widget for the account recovery process. Currently, this is for resetting a passkey.
Examples
client.showAccountRecovery({
container: 'webauthn-devices-container',
loginLink: 'https://www.example.com/auth-callback',
allowCreatePassword: true,
onReady: instance => {
// Destroy the widget
// if (...) instance.destroy()
},
theme: { primaryColor: '#274890' },
i18n: {
email: 'Email'
}
})
Parameters
Boolean to display the option to create a password in the widget. The text is usually "Or create a password". Defaults to |
|||||||||
The DOM element or the |
|||||||||
Widget labels and error messages to override. Falls back to the default wordings in
|
|||||||||
The URL to which the user is redirected after a password reset. |
|||||||||
Callback function called after the widget has been successfully loaded and rendered inside the container. The callback is called with the widget instance. |
|||||||||
The options to set up to customize the appearance of the widget. Below is an example of some of the theme attributes. For a full list, see theme attributes.
|
theme
attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|