Skip to main content

1. Prerequisites

  • Node.js — v18 LTS or later
  • React — v18.0.0 or later (peer dependency)
  • react-dom — v18.0.0 or later (peer dependency)
  • TypeScript — v5+ recommended (SDK includes full .d.ts types)
  • Bundler — Vite / CRA / Next.js (Any React bundler that supports ESM)
  • Browser Support — Chrome 90+, Edge 90+, Firefox 90+, Safari 15.4+
  • Camera Access — Required for all verification journey flows
  • Quepass Credentialsemail, password, channelId, baseUrl (provided by Quepass)

2. Setup

1

Add SDK Package

Install the SDK from the provided .tgz file:
npm install directory-path/quepass-sdk-1.1.2.tgz -f
2

Update package.json

Point the dependency to the local SDK file:
"dependencies": {
  "@quepass/sdk": "file:../sdk/quepass-sdk-1.1.2.tgz"
}
3

Install Dependencies

Run:
npm install
4

Import SDK Styles

  1. Add the SDK CSS in your main.tsx (or root file):
    import '@quepass/sdk/dist/index.css';
    
5

Import the SDK in Your Component

In every component where you use the SDK:
import { Quepass } from '@quepass/sdk';
The SDK is the default export as the named Quepass. Always use the named import.