Socket
Socket
Sign inDemoInstall

express-basic-auth

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-basic-auth - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

index.js

@@ -44,7 +44,5 @@ var auth = require('basic-auth');

next();
return next();
function unauthorized() {
res.status(401);
//TODO: Allow to set realm for the challenge

@@ -55,3 +53,3 @@ if(challenge)

//TODO: Allow response body to be JSON (maybe autodetect?)
return res.send(getResponseBody(req));
return res.status(401).send(getResponseBody(req));
}

@@ -58,0 +56,0 @@

{
"name": "express-basic-auth",
"version": "0.2.2",
"version": "0.2.3",
"description": "Plug & play basic auth middleware for express",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc