The iPhone's Wallet app on iOS 15 supports adding digital ID cards, with Apple apparently using facial recognition to verify your identity and validate your ID card with a selfie.
You’ll take a selfie to verify your identity when adding digital ID cards to Apple Wallet