express-gateway-plugin-oauth
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "express-gateway-plugin-oauth", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Plugin para solicitar autorização do serviço de autenticação remoto.", | ||
@@ -5,0 +5,0 @@ "main": "manifest.js", |
@@ -0,1 +1,3 @@ | ||
const odinRequest = require('odin-request-retry'); | ||
module.exports = { | ||
@@ -15,2 +17,10 @@ name: 'authentication', | ||
let requestTemplate = require('./template/authentication-template').request('teste', token); | ||
odinRequest.request(requestTemplate, 2).then((response) => { | ||
console.log('response', response); | ||
}); | ||
console.log('verificando token' + token); | ||
@@ -21,3 +31,3 @@ | ||
} else { | ||
res.status(401).send('Não autorizado.'); | ||
return res.status(401).send('Não autorizado.'); | ||
} | ||
@@ -24,0 +34,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1821
4
36
4