BiometricAuthenticationErrorCode

@objc
public enum BiometricAuthenticationErrorCode : Int

Enumeration for handling errors when using biometric authentication.

  • Biometric unlock has been invalidated.

    This may happen if the user changes their biometric profile, such as adding or removing a fingerprint or identity. To recover from this error, call setupBiometrics() after first challenging the user for their application password.

    It is recommended that in this scenario your application informs the end user the biometric profiles have changed and to advise them to only register their own fingerprints or face on the device.

    Declaration

    Swift

    case invalidated = 100
  • Invoke setupBiometrics() before trying to use promptBiometrics(_:reply:).

    Declaration

    Swift

    case notSetUp = 200