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

fh-mbaas-express

Package Overview
Dependencies
Maintainers
12
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-mbaas-express - npm Package Compare versions

Comparing version 5.9.1 to 5.9.2

12

lib/common/authenticate.js

@@ -166,9 +166,9 @@ var request = require('request');

}, function(err, res) {
// Can set API_KEY_VALIDATION_TIMEOUT to expire more frequently than a day
var expiration = parseInt(process.env.API_KEY_AUTH_PROJ_VALIDATION_TIMEOUT, 10) || 300000; // A day
var cacheLength = now + expiration; // A day
// Can set API_KEY_VALIDATION_TIMEOUT to expire more frequently than 5 minutes
var expiration = parseInt(process.env.API_KEY_AUTH_PROJ_VALIDATION_TIMEOUT, 10) || 300000; // 5 minutes
var cacheLength = now + expiration; // 5 minutes
// Explicitly handle 404s from Millicore here - the validate_key_against_authoried_projects endpoint may not exist in this cluster
// If we get a 404, continue
if (res.statusCode === 404) {
if (res && res.statusCode === 404) {
authenticateAppApiKeyAuthProjCache[sentApiKey] = {

@@ -194,5 +194,7 @@ "timeout": cacheLength

} else {
var errorMsg = (res.body && res.body.message) || "Invalid API Key";
console.log("Issue validating app api key. Status Code: " + res.statusCode + ". Error Message: " + errorMsg);
return cb({
code: UNAUTHORISED_HTTP_CODE,
message: "Invalid API Key"
message: errorMsg
});

@@ -199,0 +201,0 @@ }

{
"name": "fh-mbaas-express",
"version": "5.9.1",
"version": "5.9.2",
"dependencies": {

@@ -5,0 +5,0 @@ "async": {

{
"name": "fh-mbaas-express",
"version": "5.9.1",
"version": "5.9.2",
"description": "FeedHenry MBAAS Express",

@@ -5,0 +5,0 @@ "main": "lib/webapp.js",

Sorry, the diff of this file is not supported yet

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