Skip to main content
This guide covers the same steps as the main quick start but using the Wrangler CLI instead of the Cloudflare dashboard.
This quick start uses the Concordium testnet. No real identities are used and nothing is billed.

Prerequisites

  • A Veriox account
  • A Cloudflare account with your domain proxied
  • Node.js 18+ installed
  • Wrangler installed and authenticated:
npm install -g wrangler
wrangler login

Step 1 — Create a worker in the Veriox portal

  1. Sign in to portal.veriox.io
  2. Go to WorkersNew Worker
  3. Enter a name
  4. Copy the private key shown after creation (displayed only once)
  5. On the worker’s Install page, click Download worker to get veriox-worker.js (personalised with your Worker ID)

Step 2 — Deploy the worker

Put veriox-worker.js in a new folder with this wrangler.toml:
name = "my-site-age-verification"
main = "veriox-worker.js"
compatibility_date = "2024-05-01"
compatibility_flags = ["nodejs_compat"]
Set your private key as a secret — the only value you need to set:
wrangler secret put VERIOX_PRIVATE_KEY
# paste the private key from the portal when prompted
Deploy:
wrangler deploy
All verification settings (network, age, session length) are managed in the portal — no variables to configure here.

Step 3 — Add a Worker Route

In the Cloudflare dashboard, go to Workers & Pages → your worker → SettingsTriggersAdd Route and enter yourdomain.com/*.

Step 4 — Test it

Open your site in an incognito window. The Veriox popup should appear. Use the Concordium testnet wallet to complete a verification.
Popup appeared and verification completed? Your integration is working.

Next steps