Skip to content
scroll to zoom · drag to pan

SignTransformOptions

type SignTransformOptions = {
expiresInSeconds: number;
nowSeconds?: number;
tenantId?: number;
};

Defined in: packages/asset-client/dist/index.d.ts:584

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.


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.


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.