brutesql
v1.0.2
Published
An express-brute memory store built with mysql
Downloads
4
Readme
MySQL store adapter for the express-brute.
Installation
npm install brutesql
Usage
const ExpressBrute = require('express-brute');
const BruteSQL = require('brutesql');
const bruteStore = new BruteSQL({host: process.env.DB_HOST, user: process.env.DB_USER, pass: process.env.DB_PASS});
const bruteforce = new ExpressBrute(bruteStore);
app.post('/auth', bruteforce.prevent, (req, res) => {});
License
This project is licensed under the MIT license.