amazon-connect/amazon-connect-message-streaming-examples

The signature is not detected correctly because the type is incorrect.

Closed this issue · 1 comments

The return value of fb.validateRequest(...) is a Promise, so await is required.
If there is no "await", the signature detection will always succeed. (if (!validRequest) will be determined to be false)

caller

const validRequest = fb.validateRequest(event);

callee

Closing issue as the PR is merged