An error "TypeError: res.status is not a function" is shown when I try it.
[issue link]I want to use “express-basic-auth” from serverMiddleware.
However, an error below is displayed.
An error "TypeError: res.status is not a function" is shown when I try it.
Please tell me how I should deal with that.
Actual code is as shown below.
const basicAuth = require('express-basic-auth')
module.exports = basicAuth({ users: { 'admin': 'supersecret' } })