Posts in javascript

Basic Auth With Express 4

I’ve only more recently started using Express 4 instead 3.x for building APIs with Node.js. The framework saw quite a bit of refactoring, and has lead to a noticeable amount of confusion on GitHub and StackOverflow.

One of these issues is using basic auth middleware with Express 4. Where is it? It’s gone! Poof. Vanished. The alternatives? basic-auth-connect had been previously recommended, but is now deprecated. Thankfully, it’s a simple concept made even easier to implement with the use of basic-auth.

written in javascript Read on →