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' } })
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2487">#c2487</a>)</em></sub></div>