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.0 to 0.2.1

2

package.json
{
"name": "express-basic-auth",
"version": "0.2.0",
"version": "0.2.1",
"description": "Plug & play basic auth middleware for express",

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

@@ -33,3 +33,6 @@ # express-basic-auth

The middleware will check incoming requests for a basic auth (`Authorization`)
header, parse it and check if the credentials are legit.
header, parse it and check if the credentials are legit. If there are any
credentials, an `auth` property will be added to the request, containing
an object with `user` and `password` properties, filled with the credentials,
no matter if they are legit or not.

@@ -39,5 +42,2 @@ **If a request is found to not be authorized**, it will respond with HTTP 401

**If a request is successfully authorized**, an `auth` property will be added to the request,
containing an object with `user` and `password` properties, filled with the credentials.
### Static Users

@@ -44,0 +44,0 @@

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