Skip to content

Instantly share code, notes, and snippets.

@jhiver
Created January 6, 2015 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhiver/b37cd7bfd9f90b501fe1 to your computer and use it in GitHub Desktop.
Save jhiver/b37cd7bfd9f90b501fe1 to your computer and use it in GitHub Desktop.
GC fix
Client.prototype.webhookValid = function webhookValid(params) {
if (!params) {
return false;
}
if (!params.payload) {
return false;
}
return Signer.verify(params.payload, this.config.appSecret);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment