Expo LocalAuthentication

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hi, i am currently trying to apply local authentication so that the user can sign in with faceID, my problem is if faceID did not work it always falls back to the device password. I DONT WANT THAT, since anyway if faceID fails the user will have to enter the registered account password.

i checked for hasHardwareAsync is true then i check the array obtained from supportedAuthenticationTypesAsync for a value of 2 if true then i check if user isEnrolledAsync has a faceID saved on device if true then finally i check if

const x = LocalAuthentication.authenticateAsync();

x.success is true then i log user in

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.