Face Validation
Render a fullscreen capture component that analyzes frames from the user’s front-facing camera to determine whether a live human face is present.
Example
React
import { FaceValidation } from "idmission-web-sdk";
async function getSessionId() {
const resp = await fetch("/api/get-session");
return (await resp.json()).id;
}
export default function App() {
return (
<FaceValidation sessionId={getSessionId} />
)
}Props
Class Names
Assets
loadingOverlay.instructionImageUrlURL to the instruction image on the loading overlay. Defaults to https://websdk-cdn-dev.idmission.com/assets/Selfie-Image-1.png . |
loadingOverlay.cameraAccessDenied.imageUrlURL to the image to display when camera access is denied. Defaults to https://websdk-cdn-dev.idmission.com/assets/camera-disable-icon.png . |
loadingOverlay.microphoneAccessDenied.imageUrlURL to the image to display when microphone access is denied. Defaults to https://websdk-cdn-dev.idmission.com/assets/microphone-disable-icon.svg . |
loadingOverlay.introStep1Emoji |
loadingOverlay.introStep2Emoji |
loadingOverlay.transitionEmojiRing mode: emoji on the flipped badge of the ID→selfie handoff. Defaults to 🤳. |
failure.imageUrlURL to the image to display on the FaceLivenessFailure screen. Defaults to https://websdk-cdn-dev.idmission.com/assets/Face_Not_Detected.svg . |
Colors
Verbiage
Last updated on