https://github.com/smashah/starling-verifier
A simple express middleware to easily verify starling webhook requests
https://github.com/smashah/starling-verifier
Last synced: 7 months ago
JSON representation
A simple express middleware to easily verify starling webhook requests
- Host: GitHub
- URL: https://github.com/smashah/starling-verifier
- Owner: smashah
- Created: 2020-01-30T14:52:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T07:32:54.000Z (almost 3 years ago)
- Last Synced: 2025-03-18T14:11:26.583Z (7 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/starling-verifier)
[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]# starling-verifier
A simple [express](https://github.com/expressjs/express) middleware for [Starling Bank webhooks](https://developer.starlingbank.com/) that throws an Error if a webhook signature is invalid, with bodyParser built in.
## Installation
```bash
> npm i --save starling-verifier
```## Usage
```javascript
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](https://choosealicense.com/licenses/mit/)
[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg
[buymeacoffee]: https://www.buymeacoffee.com/smashah