Basic auth for NodeJS
JavaScript CSS
Switch branches/tags
Nothing to show
Latest commit ad6085a Apr 29, 2014 @dawnerd Update
Failed to load latest commit information.
test Added basic auth code. Aug 30, 2011
.gitignore Added basic auth code. Aug 30, 2011
auth.js Removed some silly whitespace. Aug 30, 2011
package.json Release 0.0.2 Nov 29, 2013 Update Apr 29, 2014



I needed just very basic auth for NodeJS and I couldn't find a module that worked.

To install:

npm install basic-auth-old
var auth = require('basic-auth')({
  name: 'Auth Box Name',
  accounts: [

This is by no means a secure system. This is good if you have a page that just needs to prevent some unauthorized access (such as an intranet).