Code Samples for Web Integrations
Core-module integrations
The following examples refer to the Incode core modules: ID Validation and Face Match
Code Sample | Guide / Tutorial | Code Sample Repository |
---|---|---|
Vanilla Javascript | How-to use Web SDK | onboarding-core-javascript |
React JS (Clean) | onboarding-core-react | |
Next.js | NextJs Integration Guide | onboarding-core-nextjs |
Extended integrations
The following examples refer to the Incode core modules: Desktop-to-mobile redirection, Device fingerprint, User consent, ID Validation, and Face Match
Code Sample | Guide / Tutorial | Code Sample Repository |
---|---|---|
Extended Onboarding Example in React using Typescript | Guide | onboarding-extended-react |
Extended Onboarding Example in Vanilla Javascript | onboarding-extended-javascript |
Web Authentication
Code Sample | Guide / Tutorial | Code Sample Repository |
---|---|---|
Vanilla JS Web Authentication | Face Authentication | authentication-javascript |
Low-Code integrations
Code Sample | Guide / Tutorial | Code Sample Repository |
---|---|---|
Redirect and Back | Redirect and Back | onboarding-lowcode-redirect |
Embedded Iframe | Embedded Iframe | onboarding-lowcode-iframe |
Backend Sample Server
All our frontend samples require a working backend that will communicate directly with Incode's API; for that, we have created a Backend Sample Server that goes along with the frontend samples; this sample has endpoints used in one or more types of integrations.
Considerations
Use HTTPS for local development
The sample server exposes itself in thehttp://localhost:3000/
this means it wont directly work for you during development.
You will need to be able to access it from your phone in the local network that means stricter CORS rules will be applied (browsers relax CORS rules when pointing to localhost
, but apply them fully when pointing to an IP), It also means that you will be required to access it trough HTTPS.
Most of our samples are created with Vite and configured to proxy http\://localhost:3000/
into https://your-local.ip/api
this way samples don't hit into CORS issues when running locally.
For the ones that doesn't implement that, you will need to expose the backend server using something like Ngrok
Updated 6 months ago