registerAuthenticator
Used to register a new authenticator for the currently authenticated user. See User authentication with system biometric authenticators for more information.
registerAuthenticator(authenticatorId: string): Promise<void>
| Property | Type | Description |
|---|---|---|
| type | string | The id of the authenticator you want to register |
Example
OneWelcomeSdk.registerAuthenticator('com.onegini.authenticator.TouchID')
.then(() => {
console.log('Register Authenticator succeed!')
})
.catch(error => {
console.log('Register Authenticator failed!: ', error.message)
})