|
|
@@ -59,9 +59,9 @@ module.exports = function(config) {
|
|
|
return callback(new Error('[googleAuth.handleCallback] Error while proceccing userinfo.get.'), null);
|
|
|
}
|
|
|
|
|
|
- response = response.data; //fix googleapis 25.0.0
|
|
|
- response.user_id = response.id; // This is for B.C. (tokeninfo をつかっている前提のコードに対してのもの)
|
|
|
- return callback(null, response);
|
|
|
+ const data = response.data;
|
|
|
+ data.user_id = data.id; // This is for B.C. (tokeninfo をつかっている前提のコードに対してのもの)
|
|
|
+ return callback(null, data);
|
|
|
});
|
|
|
});
|
|
|
};
|