Skip to main content

Error codes

AuthenticationError is a string union of 15 values. It is set on AuthenticationResult.error exactly when success is false.

CodeMeaningiOS source (LAError)Android source
not_availableThe device has no biometric hardware, or the app may not use it.biometryNotAvailable; missing NSFaceIDUsageDescriptionBIOMETRIC_ERROR_HW_UNAVAILABLE, HW_NOT_PRESENT, SECURITY_UPDATE_REQUIRED; missing USE_BIOMETRIC; biometrics only on Android 8 and 9
not_enrolledNo biometrics are enrolled, and the device fallback is disabled or unavailable.biometryNotEnrolledBIOMETRIC_ERROR_NO_BIOMETRICS, BIOMETRIC_ERROR_NONE_ENROLLED
passcode_not_setThe device has no passcode, PIN, pattern or password.passcodeNotSetBIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL; keyguard fallback on an insecure device
lockoutToo many failed attempts locked biometrics.biometryLockoutBIOMETRIC_ERROR_LOCKOUT, BIOMETRIC_ERROR_LOCKOUT_PERMANENT
user_cancelThe user dismissed the prompt.userCancelBIOMETRIC_ERROR_USER_CANCELED, BIOMETRIC_ERROR_NEGATIVE_BUTTON; keyguard screen left
system_cancelThe system dismissed the prompt, for example when the app moved to the background.systemCancelBIOMETRIC_ERROR_CANCELED
app_cancelThe app called cancelAuthenticate, or a newer authenticate call replaced the prompt.appCancelAny failure after cancelAuthenticate
user_fallbackThe user tapped the fallback button on iOS.userFallbackn/a
authentication_failedThe user did not match.authenticationFailedn/a: a failed match keeps the prompt open
timeoutThe prompt timed out on Android.n/aBIOMETRIC_ERROR_TIMEOUT
no_spaceAndroid has no storage left to finish authentication.n/aBIOMETRIC_ERROR_NO_SPACE
unable_to_processThe sensor could not read the biometric, for example a dirty sensor.n/aBIOMETRIC_ERROR_UNABLE_TO_PROCESS
invalid_contextThe authentication context was invalidated on iOS.invalidContextn/a
not_interactiveThe app may not show the prompt, for example while it is in the background.notInteractiven/a
unknownAny other platform error. The warning field describes it.Any other codeAny other code

warning carries the platform's message for logs only. See Handling errors for grouping the codes in app logic.