davehorton / verify-aws-sns-signature

Verifies Signature in AWS SNS HTTP POST requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

verify-aws-sns-signature

An async function that verifies the Signature in an AWS SNS HTTP(S) POST request. It takes one argument, which is an object representing the JSON body of the POST.

const {validatePayload} = require('verify-aws-sns-signature');

..
const verified = await validatePayload(payload);

About

Verifies Signature in AWS SNS HTTP POST requests

License:MIT License


Languages

Language:JavaScript 100.0%