Crittora Logo
Getting StartedChangelogContact Support

JS SDK reference

Applies to: @crittora/sdk-js v2
Primary runtime: Node.js 18+
Last updated: March 8, 2026

This page explains the public JavaScript SDK surface at a high level so developers can choose between CrittoraClient, the built-in cognitoAuthProvider, and the legacy Crittora compatibility layer.

SDK surface
APIPurposeUse when
CrittoraClientPrimary SDK client for new integrationsYou want explicit credentials, auth, timeouts, retries, and typed request objects
cognitoAuthProviderBuilt-in Cognito login providerYou want the SDK to perform login and manage tokens
CrittoraLegacy compatibility shimYou need to preserve an older integration contract
Recommended defaults
  • Start new integrations with CrittoraClient.
  • Use cognitoAuthProvider when you want the SDK to own the Cognito login step.
  • Keep the legacy Crittora class only for compatibility, not as the default teaching path.
Related flows
  • JS SDK quickstart covers installation and first use.
  • Authentication models explains bearer-token versus managed credential flows.
  • Legacy SDK migration shows how to move older integrations onto CrittoraClient.

Powered by AWS • Partner Technology • Patent Pending PQC Technology