verify-aws-sns-signature

Verifies Signature in AWS SNS HTTP POST requests

Usage no npm install needed!

<script type="module">
  import verifyAwsSnsSignature from 'https://cdn.skypack.dev/verify-aws-sns-signature';
</script>

README

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);