Keep the exact request bytes on req.rawBody (signatures are computed over them) and parse JSON into req.body. Mount it on webhook routes instead of express.json().
req.rawBody
req.body
express.json()
Keep the exact request bytes on
req.rawBody(signatures are computed over them) and parse JSON intoreq.body. Mount it on webhook routes instead ofexpress.json().