Expo LocalAuthentication - No fallback to passcode

Please provide the following:

  1. SDK Version: 34
  2. Platforms(Android/iOS/web/all): iOs
LocalAuthentication.authenticateAsync({ fallbackLabel: '', promptMessage: 'Authenticate' })

Hello guys, I’ve the following doubt:

  • Is it possible to make the TouchID (or FaceID) authentication to not fallback into iOs system passcode?

For security reasons I want only to be able to authenticate through touch or face ID OR making it fallback to a passcode within my app (like Revolut, for example).

From the docs:
fallbackLabel: (...) Setting this option to an empty string disables fallback to device passcode. → Not working as intended, device passcode still triggering.

Also, when providing options for the authenticateAsync method, authentication modal doesn’t open if only fallbackLabel is provided, needs promptMessage too although docs state no obligation.

Thank you

Hey @amsimoes,

Would you mind creating a Snack that replicates the issue so I can test this on my end?

Cheers,
Adam

Cheers @adamjnav,

I’ve found that this issue is due to a native module feature that is missing, see github issue: [LocalAuthentication][iOS] Still falls back to Passcode after TouchID fails several times with `fallbackLabel` set to empty string · Issue #4799 · expo/expo · GitHub

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