Skip to content

Commit

Permalink
Merge a150b1c into 4efaec2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywu0128 committed Aug 8, 2016
2 parents 4efaec2 + a150b1c commit a209a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ OAuth.prototype._verifyToken = function (openid, accessToken, callback) {
OAuth.prototype.getUserByCode = function (code, callback) {
var that = this;
this.getAccessToken(code, function (err, result) {
if (err) {
if (err&&err!='ok') {
return callback(err);
}
that.getUser(result.data.openid, callback);
Expand Down

0 comments on commit a209a59

Please sign in to comment.