Skip to content

WebClientOptions

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

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

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

Identical to the root AquienpzClientOptions 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 AquienpzClient({ endpoint: “/api/am”, // OK: relative → same-origin BFF tenantCode: “realtyone-cr”, tenantId: 1, // apiKey: “amk_rt_…”, // ERROR: TS error: not assignable });