@regulaforensics/idv-capture-web 2.3.146-nightly → 2.3.149-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/{index-BXTc_4d-.js → index-BrYIcfAp.js} +9891 -9725
- package/dist/{index-CN8KBqc_.js → index-Cc8s8Qon.js} +1 -1
- package/dist/{index-JaHr5MDw.js → index-D9OC-tus.js} +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/main.iife.js +74 -74
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,13 +116,13 @@ service.eventListener = idvEventListener;
|
|
|
116
116
|
/** for convenience, we will use an asynchronous function. You also can use Promises */
|
|
117
117
|
(async function () {
|
|
118
118
|
/** set modules */
|
|
119
|
-
const
|
|
119
|
+
const initResult = await service.initialize({
|
|
120
120
|
modulesConfig: { docreader: { devLicense: 'yourBase64license' } },
|
|
121
121
|
includedModules: [IdvModules.LIVENESS, IdvModules.DOC_READER],
|
|
122
122
|
});
|
|
123
123
|
/** if something goes wrong, the command error will contain an error field. */
|
|
124
|
-
if (
|
|
125
|
-
console.log(
|
|
124
|
+
if (initResult.error) {
|
|
125
|
+
console.log(initResult.error);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -147,7 +147,8 @@ service.eventListener = idvEventListener;
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
const metadata = { anyMetadata: 'Any Metadata' };
|
|
150
|
-
const
|
|
150
|
+
const locale = 'en-us'; // 'en-us' for example. Should be the language of your workflow
|
|
151
|
+
const startWorkflowResult = await service?.startWorkflow({ locale: locale, metadata: metadata });
|
|
151
152
|
|
|
152
153
|
if (startWorkflowResult.error) {
|
|
153
154
|
console.log(startWorkflowResult.error);
|