starling-verifier

1.0.1 • Public • Published

npm version Buy me a coffee

starling-verifier

A simple express middleware for Starling Bank webhooks that throws an Error if a webhook signature is invalid, with bodyParser built in.

Installation

> npm i --save starling-verifier

Usage

const express = require("express");
const app = express();
const starlingVerifierMiddleware = require('starling-verifier')
const stlng = starlingVerifierMiddleware(PROCESS.ENV.STARLING_WEBHOOK_SECRET)
app.use(stlng)
 
app.post('/starlingWebhook', async (request,response)=>{
    ...
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Package Sidebar

Install

npm i starling-verifier

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.29 kB

Total Files

3

Last publish

Collaborators

  • smashah