bidstage/lib/webhook-incidents.ts

6 lines
180 B
TypeScript

import { createHash } from "node:crypto";
export function webhookIncidentId(eventId: string): string {
return createHash("sha256").update(eventId).digest("hex").slice(0, 12);
}