Scan your whole stack
Are you using @regulaforensics/idv-capture-web?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v4.0.702-nightly
@regulaforensics/idv-capture-web was last scanned on 28 Nov 2026 at version 4.0.702-nightly. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 4.0.702-nightly LATEST | 28 Nov 2026 | No rules fired |
| 4.0.701-nightly | 27 Nov 2026 | No rules fired |
| 4.0.700-rc | 27 Nov 2026 | No rules fired |
| 4.0.699-nightly | 26 Nov 2026 | Not shown |
| 4.0.698-nightly | 25 Nov 2026 | Not shown |
Findings for v4.0.702-nightly. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 4.0.702-nightly; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The available component is <idv-flow>.
The component is designed to run IDV workflows, collect data from users, and send it to the Platform.
If your application uses a Content Security Policy (CSP), make sure it allows the resources required by the Web Components.
The <idv-flow> component can use the @regulaforensics/idv-face and @regulaforensics/idv-document modules, which rely on Web Workers and WebAssembly (WASM). For these to work correctly together with CSP, we recommend adjusting your CSP headers as follows:
script-src 'unsafe-inline' 'unsafe-eval' blob:;
worker-src https://wasm.regulaforensics.com blob:;
For more background on WebAssembly and CSP, see WebAssembly Content Security Policy.
The the latest version of the following browsers are supported:
If you are starting a new project, initialize it:
cd /path/to/project
npm init
Install the main package:
npm i @regulaforensics/idv-capture-web
Optionally, install additional modules:
npm i @regulaforensics/idv-face
npm i @regulaforensics/idv-document
Create index.html and index.js files in the root directory of the project.
Import @regulaforensics/idv-capture-web into your index.js:
import './node_modules/@regulaforensics/idv-capture-web/dist/main.js';
In index.html, add the component and load index.js:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My app</title>
</head>
<body>
<idv-flow></idv-flow>
<script type="module" src="index.js"></script>
</body>
</html>
Here is an example of index.js file.
Use a CDN if you don’t have a build process (for example, a plain HTML/JS project). Add the following script tags to your .html file. The CDN link format is unpkg.com/:package@:version/:file:
<script src="https://unpkg.com/@regulaforensics/idv-capture-web@latest/dist/main.iife.js"></script>
<script src="https://unpkg.com/@regulaforensics/idv-face@latest/dist/main.iife.js"></script>
<script src="https://unpkg.com/@regulaforensics/idv-document@latest/dist/main.iife.js"></script>
The setup process involves four steps: Initialize → Configure → Prepare → Start.
import { IdvIntegrationService } from '@regulaforensics/idv-capture-web';
import { FaceIdv } from '@regulaforensics/idv-face';
import { DocumentIdv } from '@regulaforensics/idv-document';
const service = new IdvIntegrationService();
// Event listener
service.eventListener = (event) => console.log(event);
// Initialize modules
const initResult = await service.initialize({
modulesConfig: { docreader: { devLicense: 'yourBase64license' } }, // For development use only. Do not use it in production.
includedModules: [FaceIdv, DocumentIdv],
});
if (initResult.error) {
console.error(initResult.error);
}
Use credentials, API key, or token URL.
With username/password
const configureResult = await service.configure({
baseUrl: 'https://your.host.com',
userName: '',
password: '',
});
With API key
const configureResult = await service.configure({
baseUrl: 'https://your.host.com',
apiKey: 'yourApiKey',
ttl: 86400, // Optional. Default is 86400 seconds (24h). You can set a custom TTL in seconds.
});
With token URL
const configureResult = await service.configure({
url: 'your-token-url',
});
const prepareResult = await service.prepareWorkflow({
workflowId: 'your_workflow_id',
});
// Error handling
if (prepareResult.error) {
console.error(prepareResult.error);
}
const metadata = { anyMetadata: 'Any Metadata' };
const locale = 'en-us';
const startWorkflowResult = await service.startWorkflow({
locale,
metadata,
});
// Error handling
if (startWorkflowResult.error) {
console.error(startWorkflowResult.error);
}
console.log('WORKFLOW FINISHED:', startWorkflowResult);
const startLoginResult = await service.startLogin({
applicationId: 'your_application_id',
baseUrl: 'https://your.host.com',
metadata: { anyMetadata: 'Any Metadata' },
locale: 'en-us',
});
// Error handling
if (typeof startLoginResult !== 'string') {
console.error(startLoginResult);
} else {
console.log('IAM AUTH CODE:', startLoginResult);
}
You can subscribe to service events such as status updates, errors, and workflow progress by assigning a listener:
const service = new IdvIntegrationService();
// Define your listener
service.eventListener = (event) => {
console.log('Event received:', event);
};
| Setter | Description |
|---|---|
nonce |
Sets a CSP nonce for <style> tags. |
sessionRestoreMode |
Restores a session if the page reloads. false by default. |
const service = new IdvIntegrationService();
service.nonce = 'nonceId';
service.sessionRestoreMode = true;
| Getter | Description |
|---|---|
version |
Returns the version of the component. |
currentSessionId |
Returns the current session ID if a session has been started; otherwise, returns null. |
const service = new IdvIntegrationService();
console.log(service.version);
| Method | Description | Type | Notes |
|---|---|---|---|
initialize(config: InitConfig) |
Initializes the service. Returns error if initialization fails. | async initialize(config: InitConfig): Promise<{ error?: BaseInitializationError }> |
Call this first before any other method. |
configure(config) |
Configures the service with credentials, API key, or token. | async configure(config: CredentialConnectionConfig \| TokenConnectionConfig \| ApiKeyConnectionConfig): Promise<ConfigureCompletion \| TokenConfigureCompletion> |
Required before preparing a workflow. |
getWorkFlows(params?) |
Returns a list of available workflows. | async getWorkFlows(params?: WorkflowListRequest): Promise<WorkflowListCompletion> |
Useful for dynamically displaying workflows to users. |
prepareWorkflow({ workflowId }) |
Prepares the service for the given workflow. Checks module and step compatibility. | async prepareWorkflow({ workflowId }: { workflowId: string }): Promise<PrepareWorkflowCompletion> |
Must be called after configure. Validates workflow and modules. |
startWorkflow(config?) |
Starts the workflow. Show the web component before running and remove it after completion. | async startWorkflow(config?: StartWorkflowConfig): Promise<WorkflowCompletion> |
Display the component before calling. Pass locale/metadata if needed. |
startLogin(config) |
Runs the IAM login flow: IAM auth start, configure, prepare, and start workflow. Returns the IAM auth code on success. | async startLogin(config: LoginConfig): Promise<StartLoginCompletion> |
Requires initialize first. Display the component before calling. |
deinitialize() |
Deinitializes the service. Run initialize again to restart. Recommended after completing work. |
async deinitialize(): Promise<DeinitializeCompletion> |
Clean up resources after finishing a workflow. Use initialize to start again. |
You can find examples of using the components on the Samples page.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.