Skip to documentation content

SDKs / Web

IKYC Web SDK

Embed browser verification with a public SDK key. Keep secret project API keys in trusted server-side code.

Install

Install package
npm install @imbil_kyc/web-sdk
Create the browser flow
import { IkycSdk } from "@imbil_kyc/web-sdk";

const ikyc = new IkycSdk({
  publicKey: "<YOUR_BROWSER_PUBLIC_KEY>",
  apiUrl: "https://<YOUR_IKYC_HOST>",
  externalUserId: customer.id,
  onComplete(result) {
    // Handle the completed browser flow in your application.
  },
  onError(error) {
    // Show safe error handling. Do not log personal data.
  },
});

ikyc.mount();

Origins and liveness

Add each exact browser application origin to the IKYC project’s allowed origins. Production browser pages must use HTTPS. When liveness is enabled, delegate camera access to QoreID’s capture iframe with an exact Permissions-Policy; do not use wildcards in production.

Response header
Permissions-Policy: camera=(self "https://dashboard.qoreid.com"), microphone=(), geolocation=()