showMfa
client.showMfa({ container: HTMLElement|id, accessToken: string, showIntro: boolean, showRemoveMfaCredentials: boolean })
Description
Shows the widget which allows you to activate second factors for MFA.
For more on MFA as a whole, see our dedicated Multi-factor Authentication guide. |
Examples
const accessToken = // Here paste the authorization token of the profile retrieved after login
client.showMfa({
container: 'mfa-container',
accessToken,
showIntro: true,
showRemoveMfaCredentials: true,
onReady: instance => {
// Destroy the widget
// if (...) instance.destroy()
},
theme: {
primaryColor: '#274890',
borderRadius: '#374890'
}
})
Parameters
The DOM element or the |
|
The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old. |
|
Show the introduction text. Defaults to |
|
Boolean to enable ( |