mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(AWS SNS Trigger Node): add missing jsonParse import (#4463)
* fix(AwsSnsTrigger): add missing jsonParse import * add clear typings for req.rawBody and getHeaderData()
This commit is contained in:
committed by
GitHub
parent
d9a41ea9d7
commit
e6ec134cf3
@@ -268,7 +268,6 @@ export class FacebookTrigger implements INodeType {
|
||||
// validate signature if app secret is set
|
||||
if (credentials.appSecret !== '') {
|
||||
const computedSignature = createHmac('sha1', credentials.appSecret as string)
|
||||
//@ts-ignore
|
||||
.update(req.rawBody)
|
||||
.digest('hex');
|
||||
if (headerData['x-hub-signature'] !== `sha1=${computedSignature}`) {
|
||||
|
||||
Reference in New Issue
Block a user