Tiquo
API and AuthenticationDOM Package

Setup

Install and initialize the Tiquo DOM Package

Setup

Install the DOM Package from npm:

npm install @tiquo/dom-package

Getting Your Public Key

Before using the SDK, get your public key from the Tiquo dashboard:

  1. Open your Tiquo dashboard
  2. Go to Settings > Auth DOM
  3. Enable the Auth DOM feature
  4. Copy your public key, which starts with pk_dom_

You also need to add the domains where you plan to use the SDK to the Allowed Domains list in the same settings page. Requests from unlisted domains are rejected.

DOM Package settings page

Initialize the SDK

import { TiquoAuth } from '@tiquo/dom-package';

const auth = new TiquoAuth({
  publicKey: 'pk_dom_your_key_here',
});

Configuration Options

OptionTypeDefaultDescription
publicKeystring(required)Your public key starting with pk_dom_
apiEndpointstringhttps://edge.tiquo.appAPI base URL (override for development)
debugbooleanfalseEnable debug logging to the console
enableTabSyncbooleantrueSync authentication state across browser tabs
analyticsbooleantrueEnable first-party website analytics
accessTokenstring-Pre-set an access token for WebView integration
refreshTokenstring-Pre-set a refresh token for WebView integration
const auth = new TiquoAuth({
  publicKey: 'pk_dom_your_key_here',
  debug: true,
  enableTabSync: true,
});

On this page