Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly parse SendGrid callback payload for verification
SendGrid requires the payload to be parsed in text, byte for byte. Since we parse the payload as JSON using `bodyParser.json()`, we unintentionally strip away the whitespace characters and mess up the encoding. Fix the payload and parse it correctly before verifying the callback.
- Loading branch information