Przeglądaj źródła

Merge pull request #266 from fumitti/fix/googleauth

fix google auth not working (googleapis >= 25.0.0)
Yuki Takei 8 lat temu
rodzic
commit
0ac2c73bf8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      lib/util/googleAuth.js

+ 1 - 0
lib/util/googleAuth.js

@@ -58,6 +58,7 @@ module.exports = function(config) {
           return callback(new Error('[googleAuth.handleCallback] Error while proceccing userinfo.get.'), null);
           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 をつかっている前提のコードに対してのもの)
         response.user_id = response.id; // This is for B.C. (tokeninfo をつかっている前提のコードに対してのもの)
         return callback(null, response);
         return callback(null, response);
       });
       });