The purpose of this app is to show how to use the Onfido JavaScript SDK by use of the npm module. By use of script tags you can see the example in the SDK repo here.
Firstly, clone the project and run npm install
. There're two ways to run the demo app:
The javascript way & the React way.
- Run
npm i
- Add your token to
src/javascript/index.html
- Start with
npm run start:javascript
- Access it at http://localhost:3000
- Run
npm i
- Add your token to
src/react/App.tsx
- Start with
npm run start:react
- Access it at: http://localhost:5173