Collaborne / aws-sns-subscription-confirmation

Express middleware (NodeJS) to respond to SNS subscription confirmations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-sns-subscription-confirmation Build Status

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

About

Express middleware (NodeJS) to respond to SNS subscription confirmations

License:Apache License 2.0


Languages

Language:JavaScript 100.0%