From f9dd039d2abed8aaab48399ce39bb9ed842af31c Mon Sep 17 00:00:00 2001 From: simont77 <26008536+simont77@users.noreply.github.com> Date: Sat, 15 Jul 2023 16:22:14 +0200 Subject: [PATCH] fix scope in quickstartGoogleDrive --- quickstartGoogleDrive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstartGoogleDrive.js b/quickstartGoogleDrive.js index 9aa15a7..6a35bb2 100644 --- a/quickstartGoogleDrive.js +++ b/quickstartGoogleDrive.js @@ -6,7 +6,7 @@ const {authenticate} = require('@google-cloud/local-auth'); const {google} = require('googleapis'); // If modifying these scopes, delete token.json. -const SCOPES = ['https://www.googleapis.com/auth/drive']; +const SCOPES = ['https://www.googleapis.com/auth/drive.file']; // The file token.json stores the user's access and refresh tokens, and is // created automatically when the authorization flow completes for the first // time.