Преглед изворни кода

fix google auth not working (googleapis >= 25.0.0)

fumitti пре 8 година
родитељ
комит
686a92d802
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      lib/util/googleAuth.js

+ 1 - 0
lib/util/googleAuth.js

@@ -59,6 +59,7 @@ 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);
       });