setPreferredAuthenticator
Used to get the preferred authenticator for the currently authenticated user.
setPreferredAuthenticator(authenticatorId: string): Promise<void>
Property | Type | Description |
---|---|---|
authenticatorId | string | The authenticator id which you want to set as preferred authenticator |
Example
OneWelcomeSdk.setPreferredAuthenticator(authenticatorId)
.then(()) => {
console.log('setPreferredAuthenticator succeed!')
})
.catch(error => {
console.log('setPreferredAuthenticator failed!: ', error.message)
})