New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-auth-basic

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-auth-basic - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

11

index.js

@@ -28,8 +28,11 @@ 'use strict'

if (credentials && checkCredentials(credentials.name, credentials.pass)) {
await next()
} else {
ctx.throw(401)
if (credentials) {
const valid = await Promise.resolve(checkCredentials(credentials.name, credentials.pass))
if (valid) {
await next()
return
}
}
ctx.throw(401)
}
}
{
"name": "koa-auth-basic",
"version": "1.0.0",
"version": "1.1.0",
"description": "Koa basic auth middleware with custom credential check",

@@ -13,3 +13,4 @@ "repository": "kbrgl/koa-auth-basic",

"basicauth",
"basic auth"
"basic auth",
"middleware"
],

@@ -16,0 +17,0 @@ "files": [

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