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

express-gateway-plugin-oauth

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-gateway-plugin-oauth - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4

2

package.json
{
"name": "express-gateway-plugin-oauth",
"version": "4.1.3",
"version": "4.1.4",
"description": "Plugin para solicitar autorização do serviço de autenticação remoto.",

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

const validateAuthorizationRole = (authorizedRoles, userDetails) => {
return new Promise((resolve) => {
return new Promise((resolve, reject) => {

@@ -10,3 +10,7 @@ if (!authorizedRoles) {

userDetails.authorities.includes({authoritie: authorizedRoles});
if (userDetails.authorities.filter(e => authorizedRoles.includes(e.authority)).size > 0) {
return resolve();
} else {
return reject();
}

@@ -13,0 +17,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