Sfoglia il codice sorgente

fix google auth not working (googleapis >= 25.0.0)

fumitti 8 anni fa
parent
commit
185aa76075
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);
       });
       });