Skip to content

Commit dea8b9f

Browse files
committed
* added missing processFace
1 parent c2538e7 commit dea8b9f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

vite-web-sdk/main.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,25 @@ async function processID() {
8383
renderSelfieCamera();
8484
}
8585

86+
87+
8688
function renderSelfieCamera() {
8789
incode.renderCamera("selfie", container, {
88-
onSuccess: finish,
90+
onSuccess: processFace,
8991
onError: showError,
9092
token: session,
9193
numberOfTries: -1,
9294
noWait: true
9395
});
9496
}
9597

98+
async function processFace() {
99+
const results = await incode.processFace({
100+
token: session.token,
101+
});
102+
console.log("processFace results", results);
103+
finish();
104+
}
96105

97106
function finish() {
98107
// Finishing the session works along with the configuration in the flow

0 commit comments

Comments
 (0)