How to Integrate Hypersign ID Widget In your App?
How to integrate Hypersign ID Widget
1. Integration Architecture
+--------------------------------------------------+ +------------------+ +--------------------------------+
| Client Browser | | Your Backend | | Hypersign Verification Service|
+--------------------------------------------------+ +------------------+ +--------------------------------+
| Host Application | Hypersign ID Widget | | | | |
+---------------------+----------------------------+ +------------------+ +--------------------------------+
| | | |
| -- [1. Fetch Session & Session JWTs] ------------->| |
| | | -- [2. Authenticate & Create DID] --->|
| | | <-- [3. Return App/User Tokens] ------|
| <– [4. Mount Widget with Secure Tokens] -----------| |
| | |
| | ---- [5. Orchestrate Captures, Biometrics & ZK Proofs] ---------->|
| | |
| | |<-- [6. Fire Webhook (Done)] ----------|2. Base Configuration
Service URLs
Prerequisite Setup
3. Backend Implementation (Node.js)
STEP 1: Prepare Administrative Access Tokens
STEP 2: Register or Fetch User DID
STEP 3: Initialize the KYC Verification Session
STEP 4: Generate User-Specific Bearer Token
STEP 5: Composite Orchestration Route
4. Frontend Implementation
Step 1: Client Workspace Handshake
Step 2: Render & Orchestrate Verification Window
Step 3: Invoking the widget
Step 4: Listening to Widget Events
Event Payload
Field
Type
Description
Error Codes
Code
Description
5. Webhook Integration
Step 1: Expose Webhook Route
Step 2: Handle Webhook Events & Verify User Consent
Step 3: Implement Webhook Listener and Token Verification
Troubleshooting
Popup window is blocked
Session Expired
Access Token Expired
Document Verification Failed
ZK Proof Generation Failed
Webhook Not Received
User Closed the Widget
Last updated