MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / post

Function post

apps/cloud/src/auth/workos-events-sync.node.test.ts:1247–1252  ·  view source on GitHub ↗
(body: string, headers: Record<string, string>)

Source from the content-addressed store, hash-verified

1245 `t=${timestamp}, v1=${createHmac("sha256", secret).update(`${timestamp}.${body}`).digest("hex")}`;
1246
1247 const post = (body: string, headers: Record<string, string>) =>
1248 new Request(`http://test.local${WORKOS_WEBHOOK_PATH}`, {
1249 method: "POST",
1250 headers: { "content-type": "application/json", ...headers },
1251 body,
1252 });
1253
1254 const deps = (secret: string | undefined) => ({
1255 secret,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected