Fedo

Fedo Vitals Integration Demo

Generate signed URL and test the vitals scan flow

Step 1: Generate Signed URL

Via API
Self-Generate
Note: Replace the API key below with your production key provided by Fedo.
Leave empty to auto-generate
Note: The JWT secret below is for testing only. Use your production secret in your backend integration.
Leave empty to auto-generate
This token will be passed back in the callback for authentication
Shared secret for signing

Step 2: Callbacks

Generate a signed URL to start...
Callbacks will appear here after scan completion...

Sample code to generate signed URL

const jwt = require('jsonwebtoken');
const SECRET = '';

const token = jwt.sign({
  orgId: 9001,
  tenantId: 9001,
  userId: 20,
  clientId: 'demo',
  custId: 'CUSTOMER_ID',
  scanId: 'UNIQUE_SCAN_ID',
  callbackUrl: 'https://your-api.com/callback',
  sessionToken: 'CUSTOMER_AUTH_TOKEN', // Returned in callback for auth
  customerName: 'John Doe',
  customerAge: 35,
  customerGender: 'male',
  hideResults: true,   // Show completion tick instead of results
  autoStart: true,     // Skip form, go directly to camera
  iat: Math.floor(Date.now()/1000),
  exp: Math.floor(Date.now()/1000) + 3600,
  jti: `demo_${Date.now()}`,
  iss: 'fedo-vitals',
  aud: 'fedo-vitals-app'
}, SECRET);

// Redirect customer to:
const url = `https://demo.fedo.ai/?token=${token}`;