Skip to content

A simple express middleware to easily verify starling webhook requests

Notifications You must be signed in to change notification settings

smashah/starling-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple express middleware to easily verify starling webhook requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published