Secrets & PII
Only scan for the PII types you actually handle
pii({ types }) lets you skip categories that don't apply -- a support bot that never touches payments doesn't need the credit_card regex running on every call.
← All recipes
import { Klaro, pii } from "@klaroshield/sdk";
const klaro = new Klaro().use(
pii({ mode: "mask", types: ["email", "phone"] })
);
// Skips ssn and credit_card scanning entirely for this pipeline.Checked against the shipped @klaroshield/sdk API. Full docs at klaro.services/klaroshield/docs.