Clerk signs people in and holds customers’ organisations. Each customer is one Clerk organisation. OrgSight keeps its own data in the backend, and uses Clerk’s organisation ID to keep customers apart.

How OrgSight uses Clerk

Key: Container Infrastructure. A dashed box is where its contents run.

Components on screen

These come from Clerk’s React library, @clerk/react. Both apps use one set of colours for them, in src/lib/clerkAppearance.ts. The apps also read from Clerk directly:

From sign-in to access

  1. Clerk signs the person in and gives their browser a session token.
  2. The app sends the token with its requests to the backend.
  3. The backend checks that Clerk issued it, then reads these details from it.
name, email and org_features aren’t in Clerk’s standard token. They’re added in Clerk, under Sessions. The back office works differently. Operators don’t need an organisation: the backend looks them up in its own operators table.

Features

Calls from the backend

These use Clerk’s Backend API, with the secret key in CLERK_SECRET_KEY.

Worth knowing

  • Clerk doesn’t tell OrgSight about changes. There are no webhooks yet, so the backend sees a new role or organisation when the person’s session token next refreshes.
  • Hiding a feature isn’t what protects it. The web app hides what an organisation doesn’t have, and the backend checks too.
  • Sign-in has its own addresses. They’re listed in DNS and security.
Features checked against the live sign-in service on 4 December 2026.