Skip to content

DanielePizzocchero/onfido-sdk-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onfido Studio Web SDK

This is a Node.js application that uses the Onfido API to create an applicant, generate an SDK token. The application allows users to input their first name, last name and then initialises the SDK on the page. The flow is set to capture doc and selfie.

Requirements

  • Node.js
  • npm
  • Onfido API token

Installation

  1. Clone the repository to your local machine
git clone https://github.com/<your-username>/onfido-studio-nodejs.git
  1. Install the necessary dependencies
npm install
  1. Create a .env file in the root directory of the project and add your Onfido API token like this
ONFIDO_API_TOKEN=<your-api-token>
  1. Start the server
npm start
  1. Visit http://localhost:3000 in your browser to access the application

Usage

  1. Input your first name, last name in the form
  2. Click the submit button
  3. The SDK will be initialised and displayed on the page

Note

  • It is recommended to exclude the node_modules folder and the .env file in the .gitignore file.
  • You need to replace <your-api-token> and <your-username> with your Onfido API token and GitHub username respectively.

Contribute

If you would like to contribute to the development of this project, please fork the repository and make a pull request.

About

web sdk implementation in node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published