The meaning of the error code in the thrown VaultError.
Biometrics have been locked out, usually because of too many failed attempts.
Note: This error will never be thrown if using DeviceSecurityType.SystemPasscode or DeviceSecurityType.Both. Its currently not possible to get the nature of failures from the native authentication dialog, so the only error that would be thrown is VaultErrorCodes.UserCanceledInteraction as the user is forced to cancel the prompt.
User authentication failed.
The operation failed because biometric authentication is not enabled. This can occur when biometrics is not supported by the device or when biometrics has not been configured for the device or vault.
The operation failed because the some of the vault provided arguments were invalid.
The credentials were invalidated. This can happen when a user changes biometrics or passcode.
The key was not found. This can happen when a user changes biometrics or passcode.
The user provided mismatched passcodes.
Biometrics have not been authed yet (Android only)
The operation requires passcode to be setup but it isn't set yet. Call Vault.setCustomPasscode to set it.
The operation failed because the application tried to unlock the vault with passcode authentication, but the vault is not configured to allow passcode authentication.
Biometric security is unavailable due to a passcode not being set up at the system level. In order to use biometric identification on the device a system level passcode must be set up by the user.
Too many failed authentication attempts made against the custom passcode vault, so the vault was cleared and user will need to login again.
An unknown error happened.
The user cancelled the native authentication dialog.
Note: On iOS, this error code will also be thrown in the event that the native authentication dialog fails as a result of too many failed attempts. The user will be forced to cancel the dialog, triggering this error code.
On Android, this error also will be thrown if using DeviceSecurityType.SystemPasscode or DeviceSecurityType.Both in the event of too many failed attempts. Its currently not possible to get the nature of failures from the native authentication dialog, and similar to iOS, the user will be forced to cancel the dialog, triggering this error code.
The operation failed because the vault was locked.
The operation failed because the vault was unavailable. The most likely cause of this error is that a vault has not been configured.