AuditOptions.getPrincipal property
Resolves the actor to record, or a falsy value to record none.
Signature:
getPrincipal: () => unknown;
Remarks
Called per write and serialized with JSON.stringify, so it can return any shape you want stored. Resolving it lazily is what keeps this extension ignorant of where the actor comes from — a request context, an auth token, or nothing at all.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.