expressjs-authenticate
v0.1.0
Published
Configurable Express Authentication Middleware
Downloads
12
Maintainers
Readme
expressjs-authenticate
Configurable Express Authentication Middleware
Setup
const { setup, requireAuth } = require('expressjs-authenticate')({
secret: process.env.JWT_SECRET,
client,
connection,
usernameField: 'email'
})
...
const app = express()
setup(app)