We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2538e7 commit dea8b9fCopy full SHA for dea8b9f
vite-web-sdk/main.js
@@ -83,16 +83,25 @@ async function processID() {
83
renderSelfieCamera();
84
}
85
86
+
87
88
function renderSelfieCamera() {
89
incode.renderCamera("selfie", container, {
- onSuccess: finish,
90
+ onSuccess: processFace,
91
onError: showError,
92
token: session,
93
numberOfTries: -1,
94
noWait: true
95
});
96
97
98
+async function processFace() {
99
+ const results = await incode.processFace({
100
+ token: session.token,
101
+ });
102
+ console.log("processFace results", results);
103
+ finish();
104
+}
105
106
function finish() {
107
// Finishing the session works along with the configuration in the flow
0 commit comments