computeVerificationCodeFromQrcode

Generate the 6-digit OTP that the user needs to enter in the browser when authenticating with the offline QR Code Factor. This is a protected operation, so the SDK must be unlocked before calling this method.

Parameters

qrCode

raw value parsed from the scanned QR code.

See also

.computeVerificationCodeFromQrcodeWithBiometrics

Throws

if there was an error when parsing the QRCode.

if there is no account enrolled for the provided QRCode.

if the SDK is not unlocked.


Generates the 6-digit OTP that the user needs to enter in the browser when authenticating with the offline QR Code Factor, when the user presence is verified using the Custom App PIN. This method with the argument sdkPin shall only be used when the SDK LockConfigurationType is SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

Parameters

qrCode

raw value parsed from the the QR code scanned.

sdkPin

the Custom App PIN provided by the user.

See also

.computeVerificationCodeFromQrcodeWithBiometrics

Throws

if the SDK is configured with a LockConfigurationType other than SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

if any of the specified arguments are invalid.

if there was an error when parsing the QRCode.

if there is no account enrolled for the provided QRCode.