verifier for Ping++ webhook message
Document
See Ping++ webhook
Installation
$ npm install pingpp-verifier
General Usage
var pingppVerifier = require('pingpp-verifier');
const publicKey = 'your key';
const publicKey = '/path/to/pub.pem';
const verify = pingppVerifier.Verifier(publicKey);
verify(body, signature);
router.use(
'/webhook',
bodyParser.raw({
type: '*/*'
}),
pingppVerifier.ExpressPingppVerifier(publicKey));
pingppVerifier.ExpressPingppVerifier(publicKey, 400, '')
router.use(
'/webhook',
bodyParser.raw({
type: '*/*'
}),
pingppVerifier.ExpressPingppVerifierTest(publicKey));
License