Răsfoiți Sursa

update docs

Yuki Takei 8 ani în urmă
părinte
comite
c03d232319
2 a modificat fișierele cu 5 adăugiri și 3 ștergeri
  1. 2 0
      CHANGES.md
  2. 3 3
      lib/util/googleAuth.js

+ 2 - 0
CHANGES.md

@@ -6,6 +6,8 @@ CHANGES
 * Fix: `Ctrl-/` doesn't work on Chrome
 * Fix: Close Shortcuts help with `Ctrl-/`, ESC key
 * Fix: Jump to last line wrongly when `.revision-head-edit-button` clicked
+* Support: Upgrade libs
+    * googleapis
 
 ## 2.3.8
 

+ 3 - 3
lib/util/googleAuth.js

@@ -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);
       });
     });
   };