passport-dingding
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -96,4 +96,4 @@ // Load modules. | ||
Strategy.prototype.userProfile = function (sns_token, done) { | ||
urllib.request(this._oauth2._userProfileURL + '?sns_token=' + sns_token, { | ||
Strategy.prototype.userProfile = function (params, done) { | ||
urllib.request(this._oauth2._userProfileURL + '?sns_token=' + params.sns_token, { | ||
headers: { | ||
@@ -104,2 +104,6 @@ 'Content-Type': 'application/json' | ||
}, function (err, data) { | ||
if (data.errcode) { | ||
e = new Error(data.errmsg) | ||
return done(e) | ||
} | ||
return done(err, data.user_info) | ||
@@ -106,0 +110,0 @@ }) |
{ | ||
"name": "passport-dingding", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "dingding authentication strategy for Passport.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
6436
110