LionC / express-basic-auth

Plug & play basic auth middleware for express
325 stars 57 forks source link

`app.use() requires middleware functions` error #1

Closed Naoto-Ida closed 7 years ago

Naoto-Ida commented 7 years ago

I'm getting the error app.use() requires middleware functions.

{
"express": "4.14.0",
"express-basic-auth": "1.0.1"
}
LionC commented 7 years ago

Thanks for reporting!

Are you sure you loaded the module with require('express-basic-auth')? Can you add the full code snippet where you are calling app.use and configuring express-basic-auth, so I can reproduce and fix it?

LionC commented 7 years ago

Closing for now, as the problem is not reproducable with the given information.