node-oauth2-server
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -120,2 +120,5 @@ // Modules | ||
return this.model.extendedGrant(req, function (err, supported, user) { | ||
if (err && err.error && err.description) { | ||
return next(new OAuth2Error(err.error, err.description)); | ||
} | ||
if (err) return next(err); | ||
@@ -260,6 +263,6 @@ if (!supported) return invalid(); | ||
if (this.model.generateToken) { | ||
this.model.generateToken(type, req, function (err, token) { | ||
this.model.generateToken(type, req, function (err, generatedToken) { | ||
if (err) return callback(new OAuth2Error('server_error')); | ||
if (!token) return token._generateToken(callback); | ||
callback(false, token); | ||
if (!generatedToken) return token._generateToken(callback); | ||
callback(false, generatedToken); | ||
}); | ||
@@ -266,0 +269,0 @@ } else { |
{ | ||
"name": "node-oauth2-server", | ||
"description": "Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "oauth", |
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
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
55012
1159