From 5ff0ead9710b25e25c56db237585b422ab006756 Mon Sep 17 00:00:00 2001 From: Billy Bennett <40703526+billythemusical@users.noreply.github.com> Date: Sat, 11 Jul 2020 17:15:41 -0400 Subject: [PATCH] Update index.js to solve Issue 92. This fix worked for me and a few others. --- docs/quickstart/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quickstart/index.js b/docs/quickstart/index.js index 0de59489..26b066a5 100644 --- a/docs/quickstart/index.js +++ b/docs/quickstart/index.js @@ -40,7 +40,7 @@ fs.readFile('credentials.json', (err, content) => { * @param {function} callback The callback to call with the authorized client. */ function authorize(credentials, callback) { - const {client_secret, client_id, redirect_uris} = credentials.installed; + const {client_secret, client_id, redirect_uris} = credentials.web; const oAuth2Client = new google.auth.OAuth2( client_id, client_secret, redirect_uris[0]);