aws-sns-subscription-confirmation
Express middleware (NodeJS) to respond to SNS subscription confirmations.
Usage
Install the library:
npm install aws-sns-subscription-confirmation
Use the library in your express application:
const express = require('express');
const bodyParser = require('body-parser');
const snsSubscriptionConfirmation = require('aws-sns-subscription-confirmation');
const app = express();
app.use(snsSubscriptionConfirmation.overrideContentType());
app.use(bodyParser.json());
app.use(snsSubscriptionConfirmation.snsConfirmHandler());