Put you api key in the headers. Make sure to use correct api key for the environment you are using.
let headers = {
"x-api-key": "YOUR_API_KEY_HERE",
"Content-Type": "application/json"
}
Install dependencies
npm install
Run the app via Expo either on a simulator or a physical device
npx expo start
To run sample app with ID Check, simply add ?id=true
parameter to the get session URL:
const faceAndIdSession = await fetch(`https://${API_URL}/liveness/session?id=true`, {
method: 'GET',
headers: headers,
})
See FaceMatch docs for more information