SignTransformOptions
type SignTransformOptions = { expiresInSeconds: number; nowSeconds?: number; tenantId?: number;};Defined in: packages/asset-client/dist/index.d.ts:584
Properties
Section titled “Properties”expiresInSeconds
Section titled “expiresInSeconds”expiresInSeconds: number;Defined in: packages/asset-client/dist/index.d.ts:590
Lifetime in seconds, 120 .. 604 800. Required — there is no “forever”
option, for the same reason signAccessUrl has none: a signed URL that
never expires is a public URL the moment someone forwards it.
nowSeconds?
Section titled “nowSeconds?”optional nowSeconds?: number;Defined in: packages/asset-client/dist/index.d.ts:598
Injectable clock, for tests that need a URL already dead on arrival.
tenantId?
Section titled “tenantId?”optional tenantId?: number;Defined in: packages/asset-client/dist/index.d.ts:596
The tenant this signature speaks for. Defaults to the process-global
(setTenantId, or a NitidaClient with tenantId) — the tenant is part
of the signed message, so it cannot be guessed from the asset.