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.
- Node.js
- npm
- Onfido API token
- Clone the repository to your local machine
git clone https://github.com/<your-username>/onfido-studio-nodejs.git
- Install the necessary dependencies
npm install
- 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>
- Start the server
npm start
- Visit http://localhost:3000 in your browser to access the application
- Input your first name, last name in the form
- Click the submit button
- The SDK will be initialised and displayed on the page
- 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.
If you would like to contribute to the development of this project, please fork the repository and make a pull request.