handleMobileAuthWithOtp
When a user is enrolled for mobile authentication, they are able to receive and respond to mobile authentication requests. This method responds to the mobile authentication with OTP request with an otpCode. See Mobile authentication with OTP for more details.
handleMobileAuthWithOtp(otpCode: string): Promise<void>
Property | Type | Description |
---|---|---|
otpCode | string | One TIme Password code to be sent |
Example
OneWelcomeSdk.handleMobileAuthWithOtp('base64 encoded OTP')
.then(() => {
console.log('Handle Mobile Auth with Otp succeed!')
})
.catch(error => {
console.log('Handle Mobile Auth with Otp failed!: ', error.message)
})