Skip to main content

FaceTec

FaceTec provides 3D liveness detection — a face scan that proves the person present is a real human, not a photo or video. The boilerplate uses FaceTec to secure the keyshare backup and recovery flows.

What FaceTec does in this app

Two FaceTec features are used:

FeatureWhen it runsPurpose
Enroll3DDuring backup setupRegisters the user's face template on FaceTec servers
Match3DDuring recovery (and re-verification)Verifies the face scan matches the enrolled template, returns a session token used in API calls

The session token from Match3D is passed to auth-svc as proof of identity when retrieving encrypted keyshares during recovery.

SDK version

The boilerplate uses FaceTec v9. This version is no longer listed on the FaceTec public dashboard — use the development credentials below for local development and testing.

Development credentials

Add these values directly to your .env for development:

EXPO_PUBLIC_FACETEC_URL=https://api.facetec.com/api/v3.1/biometrics
EXPO_PUBLIC_FACETEC_DEVICE_KEY_IDENTIFIER=drJWjaXC1Cpez8PtsdI150Qi6rtlhy55
EXPO_PUBLIC_ENCRYPTION_KEY="-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5PxZ3DLj+zP6T6HFgzzk
M77LdzP3fojBoLasw7EfzvLMnJNUlyRb5m8e5QyyJxI+wRjsALHvFgLzGwxM8ehz
DqqBZed+f4w33GgQXFZOS4AOvyPbALgCYoLehigLAbbCNTkeY5RDcmmSI/sbp+s6
mAiAKKvCdIqe17bltZ/rfEoL3gPKEfLXeN549LTj3XBp0hvG4loQ6eC1E1tRzSkf
GJD4GIVvR+j12gXAaftj3ahfYxioBH7F7HQxzmWkwDyn3bqU54eaiB7f0ftsPpWM
ceUaqkL2DZUvgN0efEJjnWy5y1/Gkq5GGWCROI9XG/SwXJ30BbVUehTbVcD70+ZF
8QIDAQAB
-----END PUBLIC KEY-----"

These are development-only credentials shared for testing purposes. For a production app, contact FaceTec to obtain a licensed key tied to your application.