Skip to content

Explain chip_photo_mismatch refusals - #22

Merged
tladesignz merged 1 commit into
sirosfoundation:mainfrom
jessevanmuijden:fix/explain-chip-photo-mismatch
Oct 15, 2026
Merged

tladesignz merged 1 commit into
sirosfoundation:mainfrom
jessevanmuijden:fix/explain-chip-photo-mismatch

Conversation

@jessevanmuijden

@jessevanmuijden jessevanmuijden commented Oct 9, 2026 •

Copy link
Copy Markdown

Refs sirosfoundation/facetec-api#77

sirosfoundation/facetec-api#80 refuses a scan whose face does not match the photo on the document's chip. Matching only the printed photo is no longer enough. The refusal has a new credentialIssueErrorCode, chip_photo_mismatch, which so far fell through to the generic "Your identity could not be verified" message.

credentialIssueErrorCode When facetec-api returns it Message
chip_photo_mismatch FaceTec's matchLevelNFCToFaceMap (live face vs chip photo) is below the minimum, or was not reported the face did not match the photo stored in the document's chip; try again or use another document

The message is translated into Greek, Finnish, Portuguese and Swedish, like the other Photo ID messages, with the same terminology. It was not written by a native speaker, so please have it reviewed. The texts match sirosfoundation/wallet-android-wrapper#44 word for word.

Test plan

  • Errors.swift compiles in an xcodebuild device build (generic/platform=iOS). The build stops later, at the step that code-signs the FaceTec framework, because there is no signing identity locally.
  • The string compiles into el/fi/pt/sv.lproj/Localizable.strings in the app bundle; spot-checked with plutil -p.
  • Not tried on a device. Triggering the refusal needs fix: require the face to match the chip photo before issuing facetec-api#80 deployed.

facetec-api now refuses a scan whose face does not match the photo on the
document's chip (sirosfoundation/facetec-api#77). Without a message of its own
it fell through to the generic "identity could not be verified". Translated
into Greek, Finnish, Portuguese and Swedish like the other Photo ID messages.
@tladesignz
tladesignz merged commit a71b1e6 into sirosfoundation:main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants