ID Validation
Render a fullscreen ID capture component that instructs the user to photograph both sides of their ID card, or the full page of their passport.
Example
React
import { IdValidation } from "idmission-web-sdk";
async function getSessionId() {
const resp = await fetch("/api/get-session");
return (await resp.json()).id;
}
export default function App() {
return (
<IdValidation sessionId={getSessionId} />
)
}Props
Class Names
Assets
documentDetectionModelUrlURL to the document detection model. Defaults to defaultDocumentDetectorModelPath. |
focusModelUrlURL to the focus model. Defaults to defaultFocusModelPath. |
loadingOverlay.instructionImageUrlURL to the instruction image on the loading overlay. Defaults to https://websdk-cdn-dev.idmission.com/assets/WebSDK-Instruction-DL-Capture-3-Portrait.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 |
Colors
Verbiage
Last updated on