Skip to content

Commit a150b1c

Browse files
authored
Update oauth.js
1 parent 4efaec2 commit a150b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ OAuth.prototype._verifyToken = function (openid, accessToken, callback) {
368368
OAuth.prototype.getUserByCode = function (code, callback) {
369369
var that = this;
370370
this.getAccessToken(code, function (err, result) {
371-
if (err) {
371+
if (err&&err!='ok') {
372372
return callback(err);
373373
}
374374
that.getUser(result.data.openid, callback);

0 commit comments

Comments
 (0)