Skip to content

onfido/onfido-sdk-web-sample-app

Repository files navigation

Onfido SDK Sample App

Overview

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.

Run the app

Firstly, clone the project and run npm install. There're two ways to run the demo app: The javascript way & the React way.

Javascript

  1. Run npm i
  2. Add your token to src/javascript/index.html
  3. Start with npm run start:javascript
  4. Access it at http://localhost:3000

React

  1. Run npm i
  2. Add your token to src/react/App.tsx
  3. Start with npm run start:react
  4. Access it at: http://localhost:5173