I’m working on detecting which type of biometric authentication methods are supported on the device that the application is running on.
I’ve fully implemented, tested, and confirmed that the authentication method flow works perfectly. But now I want to include a button that will re-prompt the user for authentication if their initial fingerprint/face id scan fails. But I want to display a button with an appropriate image based on which auth type the user has, which has led me to the following feature: LocalAuthentication.supportedAuthenticationTypesAsync();
The only problem I have found is that this is returning an array.
Here is a use case example:
let biometricType = await LocalAuthentication.supportedAuthenticationTypesAsync(); console.log("Biometric Types: " + biometricType + ' ' + biometricType); console.log("Biometric Types: " + biometricType);
And what it returns is this:
[11:55:54] Biometric Types: 2 undefined [11:55:54] Biometric Types: 2
Is this an issue with the implementation of the feature or am I doing something wrong here?