# Biometrics

> Biometric authentication: Face ID, Touch ID, LAContext, fallback to passcode. Use when implementing app features related to biometrics.

- Skill: `abdullah4ai/biometrics-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add abdullah4ai/biometrics-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/abdullah4ai/biometrics-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: abdullah4ai (https://skillmd.com/u/abdullah4ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/abdullah4ai/biometrics-2

---

# Biometrics

BIOMETRIC AUTHENTICATION (Face ID / Touch ID):
- import LocalAuthentication; LAContext().evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics)
- Requires NSFaceIDUsageDescription permission (add CONFIG_CHANGES)
- Check canEvaluatePolicy first; fall back to passcode if biometrics unavailable
- LAContext().biometryType to detect .faceID vs .touchID vs .none
- Always provide manual unlock alternative (PIN/password)

