Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-auth-koa

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-auth-koa - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

gensrc/index.js

@@ -21,3 +21,3 @@ "use strict";

if (err) {
next(err);
throw err;
} else {

@@ -24,0 +24,0 @@ next();

{
"name": "http-auth-koa",
"description": "Node.js package for HTTP basic and digest access authentication.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Gevorg Harutyunyan (http://github.com/gevorg)",

@@ -6,0 +6,0 @@ "maintainers": [

@@ -34,9 +34,10 @@ # http-auth-koa

// Setup auth.
app.use(koaAuth(basic));
// Setup basic handler.
app.use(async ctx => {
ctx.body = `Welcome to koa ${ctx.request.user}!`;
await next();
ctx.body = `Welcome to koa ${ctx.req.user}!`;
});
// Setup auth.
app.use(koaAuth(basic));
```

@@ -43,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