Skip to Content
DocumentationAdmin Back-officePasskey LoginStep 2: Load the SDK (CDN or npm)

Step 2: Load the SDK (CDN or npm)

⏱ 3 min

Load Transcodes once per app: HTML / CDN (webworker.js) or @bigstrider/transcodes-sdk with init({ projectId }). Both expose the same modal and token APIs.


Option A — HTML / CDN

Authentication Toolkit (passkeys, step-up MFA, audit):

index.html
<script type="module" src="https://cdn.transcodes.link/{YOUR_PROJECT_ID}/webworker.js" ></script>

Replace {YOUR_PROJECT_ID} with the Project ID from the Transcodes Console.

Installation Guide in Dashboard

After load, use the global transcodes object (window.transcodes).


Option B — npm

Install once, then call init at your client entry (no webworker.js script tag).

npm install @bigstrider/transcodes-sdk
import { init } from '@bigstrider/transcodes-sdk'; await init({ projectId: 'YOUR_PROJECT_ID' });

Use named exports for modals and APIs (e.g. openAuthLoginModal, on, trackUserAction) — not window.transcodes. See Quick Integration for React, Next.js, Vue, and Vanilla examples.


Framework guides

StackGuide
ReactReact
Next.jsNext.js
VueVue
VanillaVanilla JS

Verify (CDN path)

In the browser console:

console.log(transcodes); // e.g. openAuthLoginModal, token, on, trackUserAction, …

SDK is ready. Continue to Step 3: Open the login modal.

Last updated on