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
|
const validateRequest = async (request) => { |