Skip to content

IdempotencyPrincipalFactory

IdempotencyPrincipalFactory = (context) => string | readonly string[] | undefined

Defined in: packages/pipeline-idempotency/src/helpers/partitioned-key.ts:20

Resolves the principal performing an operation.

Return one identifier, or several segments when the identity has more than one dimension — for example ['service', clientId], so a service and a user that share an id string never share a namespace. Read it from authenticated context, never from a request body field the caller controls.

IPipelineContext

string | readonly string[] | undefined