deed - verify x-hub-signature
The deed Node.js module verifies X-Hub-Signature headers.
example
var deed = require('deed')
, http = require('http')
;
http.createServer(function (req, res) {
deed('secret', req, function (er, req) {
res.end(er ? 'go away' : 'ok')
})
}).listen(1337)
types
cb (er, req)
er
The error if an error occures or the authorisation failsreq
The verified request
exports
deed (secret, req, cb)
secret
The key to hash the payloadreq
The request to verifycb
cb()
Installation
License
ISC License