Which check do you actually need?
Before any code, I write down which job the business needs and who required it. Each one costs a different amount and asks something different of the user.
| The job | What answers it | What the user does |
|---|---|---|
| Know who the user is | UAE PASS login, which returns identity attributes for verified accounts | Approves a login in the UAE PASS app |
| Check the card is a real card | A camera scan plus an NFC read of the chip, through a vendor SDK or an ICP service | Photographs the card, then holds it against the phone |
| Check the holder is the owner | A selfie with a liveness check, matched to the photo from the card | Looks at the camera, and sometimes follows a prompt |