(body: string, headers: Record<string, string>)
| 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, |
no outgoing calls
no test coverage detected