Skip to content
scroll to zoom · drag to pan

WebClientOptions

type WebClientOptions = Omit<NitidaClientOptions, "apiKey" | "signingKey">;

Defined in: packages/sdk/src/web/index.ts:72

Browser-safe constructor options for @nitida/sdk/web.

Identical to the root NitidaClientOptions except apiKey and signingKey are physically absent — passing them is a TypeScript build error, not a runtime warning. In BFF-proxy mode your route handler injects the bearer header server-side; the browser never sees the long-lived key.

const aq = new NitidaClient({ endpoint: “/api/am”, // OK: relative → same-origin BFF tenantCode: “acme-co”, tenantId: 1, // apiKey: “amk_rt_…”, // ERROR: TS error: not assignable });