Skip to content

SigningOptions

Defined in: packages/api-client/src/core/interceptors/signingInterceptor.ts:37

optional debug?: boolean

Defined in: packages/api-client/src/core/interceptors/signingInterceptor.ts:55

When true, throw a clear error if the secret is missing on a whitelisted request. When false (default) silently skip signing — the BE will reject the request and the user will see the standard error path.


getSecret: () => string | undefined

Defined in: packages/api-client/src/core/interceptors/signingInterceptor.ts:43

Function returning the HMAC secret. Called per-request so callers can lazily resolve the env value (and we surface undefined cleanly when the secret is missing).

string | undefined


optional logger?: Logger

Defined in: packages/api-client/src/core/interceptors/signingInterceptor.ts:61

Logger used to surface non-throwing diagnostics. Defaults to no-op so the SDK never writes to a platform-specific console unless the consumer opts in.


optional whitelist?: readonly object[]

Defined in: packages/api-client/src/core/interceptors/signingInterceptor.ts:48

Optional override of the whitelist (mainly for tests). Defaults to SIGNING_WHITELIST.