Allow request verification using req.rawBody #758
Labels
enhancement
M-T: A feature request for new functionality
pkg:interactive-messages (deprecated)
applies to `@slack/interactive-messages`
Description
Created from slackapi/node-slack-interactive-messages#91
Description
Some hosting platforms (like Firebase Cloud) always parse the request body, and create the req.body property for convenience. Unfortunately, this prevents this library from being able to verify requests. However, there's a convention of placing the unparsed (but buffered) body on the req.rawBody property instead.
Using req.rawBody as a fallback for req.body during verification would allow users to deploy code using this package to more hosting platforms.
NOTE: We can probably just port the work from slackapi/node-slack-events-api#90 into the interactive-messages package
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: