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

express-oauth2-jwt-bearer

Package Overview
Dependencies
Maintainers
48
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-oauth2-jwt-bearer - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

dist/index.js

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

if (!fromQuery && !fromHeader && !fromBody) {
throw new InvalidRequestError('Bearer token is missing');
throw new UnauthorizedError();
}

@@ -290,3 +290,3 @@ if (+!!fromQuery + +!!fromBody + +!!fromHeader > 1) {

if (!(claim in payload)) {
return false;
throw new InvalidTokenError(`Missing '${claim}' claim`);
}

@@ -332,3 +332,3 @@ let actual = payload[claim];

if (!(claim in payload)) {
return false;
throw new InvalidTokenError(`Missing '${claim}' claim`);
}

@@ -335,0 +335,0 @@ return payload[claim] === expected;

{
"name": "express-oauth2-jwt-bearer",
"description": "Authentication middleware for Express.js that validates JWT bearer access tokens.",
"version": "0.1.0",
"version": "0.2.0",
"main": "dist/index.js",

@@ -10,3 +10,3 @@ "types": "dist/index.d.ts",

"lint": "eslint --fix --ext .ts ./src",
"prepublishOnly": "npm test && npm run lint",
"prepublishOnly": "npm run build",
"prebuild": "rimraf dist",

@@ -13,0 +13,0 @@ "build": "rollup -c"

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