Socket
Socket
Sign inDemoInstall

koa-jwt

Package Overview
Dependencies
10
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

index.js

@@ -36,3 +36,3 @@ 'use strict';

if (!secret) {
ctx.throw(500, 'Invalid secret\n');
ctx.throw(401, 'Invalid secret\n');
}

@@ -39,0 +39,0 @@

{
"name": "koa-jwt",
"version": "2.0.0",
"version": "2.0.1",
"description": "Koa JWT authentication middleware.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -165,4 +165,4 @@ 'use strict';

.set('Authorization', 'Bearer ' + token)
.expect(500)
.expect('Internal Server Error')
.expect(401)
.expect('Invalid secret\n')
.end(done);

@@ -169,0 +169,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc