Info |
---|
Ondato’s OnAge solution allow your customers to complete the process from anywhere, with any device, in a matter of seconds. With this method, Ondato employs AI and machine learning to gather and analyse biometric data, which is then used to create a 3D map of the customer’s face and accurately place them in an age group without gathering or storing any personal data. With a quick selfie, we are able to perform liveness checks, preventing any spoofing attempts or masks from getting through while keeping the steps easy for your clients. |
...
...
📁 Table of Contents
Table of Contents | ||
---|---|---|
|
...
ℹ️ Introduction
The current flow only allows using the Web Browser SDK by installing it through npm🔗or using it as a script🔗.
...
🔢 Latest version
Latest Major version is v2.x.x
Refer to Changelog for latest versions and changes.
...
🚥 Compatibility
🟢 Supported: Only web browsers (Chrome, Firefox, Safari, Edge etc.).
🔴 Not supported: Native application languages like React-Native, Flutter etc.
...
📂 Getting started with npm
To begin, run the following command:
Code Block |
---|
npm install @ondato-public/idv-sdk |
...
☑️ Prerequisites
Adjusted .npmrc file with custom registry.
...
Obtain the static OnAge setup id.
Please reach out to [support@ondato.com] for assistance.
Verify the Web browser version limitations.
Refer to the documentation here.
Review npm examples for a better understanding.
...
🗃️ Example npm
Expand | ||
---|---|---|
| ||
|
...
Full TypeScript support is available. Full list *.d.ts types can be downloaded from script🔗examples or when installed through npm🔗.
Expand | ||
---|---|---|
| ||
|
...
📂 Getting started with javascript Script
To begin, run the following command:
Code Block |
---|
<script src="{baseUrl}https://stidvuiprod.z6.web.core.windows.net/libs/ondato-sdk/ondato-sdk.2.x.x.min.js"></script> |
...
☑️ Prerequisites
...
Ensure the script is configured with the correct OnAge library build file in the index.html.
Obtain the static OnAge setup id.
Please reach out to [support@ondato.com] for assistance.
Verify the Web browser version limitations.
Refer to the documentation here.
...
🗃️ Example script
Expand | ||
---|---|---|
| ||
|
...
🔀 Flows explained
To illustrate how to implement flows, consider the following code snippet:
Code Block |
---|
import { load } from '@ondato-public/idv-sdk'; const exampleSdk = load({ mode: SdkMode.Sandbox }); |
...
1️⃣ load()
Info |
---|
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
⚠️ Possible exceptions:
|
...
2️⃣ exampleSdk.onAge.customiseStyleonload()
Info |
---|
|
Expand | ||
---|---|---|
| ||
|
...
3️⃣ exampleSdk.onAge.begin()
Info |
---|
|
Expand | ||||
---|---|---|---|---|
| ||||
⚠️ Possible exceptions:
|
...
4️⃣ exampleSdk.onAge.end()
Info |
---|
|
...
5️⃣ Data flow
🚀 Startup
Drawio | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
🆕 New Visitor
Drawio | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
◀️ Returning Visitor
Drawio | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
❔ Frequently Asked Questions (FAQs)
Why should both the
begin()
andload()
methods be used within a try-catch block?Both methods should be utilized within a try-catch block to ensure proper error handling.
What happens to the session id during an F5 (page refresh)?
In the event of an F5 (page refresh), the same session id will be retained, allowing the same session to be loaded seamlessly.
Where can I find a list of available languages?
For a list of available languages, refer to the documentation here: https://ondato.atlassian.net/wiki/spaces/PUB/pages/2520809520/Localization#%F0%9F%97%A3%EF%B8%8F-Supported-languages
...
🗒️ Changelog 🔗
...