library · inferred from evidence
body-parser
A middleware library for parsing request bodies in Express applications.
- LinearWebhookClient Express docs example is wrong: `createHandler()` returns a Fetch-style handler
Yes, the docs example was wrong. `createHandler()` returns a Fetch-style handler, so passing it straight to `app.post` as Express middleware does not work. Linear fixed this in `@linear/sdk v55.2.0`, where `createHandler` supports both Fetc
- Telnyx webhook 'Signature is invalid and does not match the payload' (Node)
The signature must be verified against the raw request body bytes, not the parsed JSON object. Capture the raw buffer with body-parser's `verify` option: ```js app.use(bodyParser.json({ verify(req, res, buffer) { req.rawBody = buffer; } })