Installation

Requirements

  • Node.js: 16+ or modern browser

  • TypeScript: 5.0+ (for TypeScript users)

NPM Installation

Install the DotPassport SDK via npm:

npm install @dotpassport/sdk

Yarn Installation

yarn add @dotpassport/sdk

PNPM Installation

pnpm add @dotpassport/sdk

CDN Installation

For browser usage without a build step:

<script type="module">
  import { DotPassportClient, createWidget } from 'https://cdn.jsdelivr.net/npm/@dotpassport/sdk/+esm';

  // Use the SDK
  const client = new DotPassportClient({ apiKey: 'your-key' });
</script>

Verify Installation

After installation, verify it works:

Next Steps

Last updated