Skip to content

Instantly share code, notes, and snippets.

😀
Happy-go-lucky every day!

Toby Urff tobyurff

😀
Happy-go-lucky every day!
Block or report user

Report or block tobyurff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webhook_authentication_signature_example.js
const crypto = require('crypto');
const hmac = crypto.createHmac('SHA256', 'my-webhook-secret');
hmac.update('{ ... }'); // request body
const correctHash = hmac.digest().toString('hex');
const receivedHash = '...'; // e.g. req.get('x-impala-signature');
/*
* It's important to perform a constant time equality comparison of the
You can’t perform that action at this time.