aws-sns-subscription-confirmation
v0.2.1
Published
Express middleware (NodeJS) to handle SNS subscription confirmation
Downloads
1,283
Keywords
Readme
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();
// Fix the wrong request content-type as required by the body-parser
app.use(snsSubscriptionConfirmation.overrideContentType());
app.use(bodyParser.json());
app.use(snsSubscriptionConfirmation.snsConfirmHandler());