Description
Message type: GET_BIOMETRICS_AUTHENTICATION_STATUS
Originator: Both
Min app version: 25.7
Description
We need a new bridge method to retrieve information about the availability of Biometrics.
Payload definition
getBiometricsAuthenticationStatus: () => Promise<{
result: 'DISABLED' | 'ENABLED' | 'DEVICE_HAS_NO_AUTHENTICATION',
}>;
- DISABLED -> The device has an authentication method (device PIN code at least, and biometrics optionally) but it has the biometrics option disabled in the app
- ENABLED -> The device has an authentication method (device PIN code at least, and biometrics optionally) and it has the biometrics option enabled in the app (it requires authentication when launching the app)
- DEVICE_HAS_NO_AUTHENTICATION -> The device has not any authentication method (it has no device PIN code neither biometrics)
Comments
We should consider another option instead of a new method:
As well as we did with the method triggerPinOrBiometricAuthentication
, which was extended to support both biometric systems (old & new), we should consider extending the current method getPinCodeInfo
in the same way, so, if the new system is enabled, retrieve its information, and if it is not, we retrieve the old one.
Possible error cases
404 -> The OB has no the new biometrics 2.0 functionality
500 -> User is not logged