oauth20-provider
Advanced tools
Comparing version 0.3.5 to 0.4.0
{ | ||
"name": "oauth20-provider", | ||
"version": "0.3.5", | ||
"version": "0.4.0", | ||
"description": "OAuth 2.0 provider toolkit for nodeJS", | ||
@@ -32,3 +32,4 @@ "keywords": ["oauth", "oauth2", "provider", "server", "connect", "express", "middleware", "http", "api", "rest"], | ||
"supertest": "*", | ||
"jade": "*" | ||
"jade": "*", | ||
"redis": "*" | ||
}, | ||
@@ -35,0 +36,0 @@ "scripts": { |
@@ -33,5 +33,8 @@ var | ||
.end(function(err, res) { | ||
if (err) return done(err); | ||
if (accessToken != res.body.access_token) return done(new Error('AccessToken strings do not match')); | ||
done(); | ||
if (err) | ||
done(err); | ||
else if (accessToken != res.body.access_token) | ||
done(new Error('AccessToken strings do not match. Expected=['+accessToken+'] Result=['+res.body.access_token+']')); | ||
else | ||
done(); | ||
}); | ||
@@ -38,0 +41,0 @@ }); |
@@ -1,2 +0,3 @@ | ||
var TYPE = 'memory'; // Pg, redis, mongodb also available for example | ||
// Run tests via "npm --type=TYPE test" (types available: memory (default), redis are available) | ||
var TYPE = process.env['npm_config_type'] || 'memory'; | ||
@@ -35,3 +36,3 @@ var | ||
} | ||
}; | ||
} | ||
@@ -38,0 +39,0 @@ // Define OAuth2 Authorization Endpoint |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
150033
87
2410
0
8
3