Skip to main content
This guide allows you to set up a fully functional OwnID Boost environment on your local machine. This setup includes a secure Node.js backend and a frontend that supports biometric registration and “Returning User” recognition.

Prerequisites

Ensure you have the following ready before starting:
  • Node.js installed on your machine
  • OwnID Application created via the OwnID Admin Console
  • ngrok installed (Download here)

1

Project Initialization

Run these commands in your terminal to create the project structure:
2

The Backend (server.js)

Create a file named server.js in your root folder. This contains the Handshake Endpoints and the Security Layer.
Important: Replace YOUR_SHARED_SECRET_HERE with the secret from your OwnID Console.
server.js
3

The Frontend

Create these two files inside the public folder.
Replace YOUR_APP_ID with the App ID from your OwnID Console.
4

Running Locally

Tunnel DiagramIn the OwnID integration, the end-user accesses both OwnID and your local development server through their browser. To allow this communication, we need to:
  1. Whitelist the local origin domain (e.g., localhost)
  2. Allow the OwnID Server to reach your local development server.
To achieve this, configure the following in your OwnID Admin Console.Navigate to the app’s main page and add the local origin to the Allowed Domains.Allowed DomainIn the app’s Integration / Backend settings, set the base URL to target a public tunnel that leads to your development server.Base Url

Creating a Local Tunnel Using ngrok

Start your local server. It will run on port 3001.
Start ngrok, targeting your server’s port:
5

Verify the "Returning User" Flow

  1. Open your generated ngrok URL in an Incognito/Private window.
  2. Navigate to Create account, enter a new email, and complete the biometric enrollment.
  3. You will be automatically redirected to the Login page.
  4. Type the email you just registered and click outside of the input box.
The Success: The widget will immediately switch to a Fingerprint icon. This indicates that your server successfully provided the biometric data via the Handshake.