Skip to content

Commit c0510eb

Browse files
author
Eric Koleda
committed
Clarify where token.json comes from.
1 parent f3ff384 commit c0510eb

13 files changed

Lines changed: 39 additions & 0 deletions

File tree

adminSDK/directory/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/admin.directory.user'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

adminSDK/reports/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/admin.reports.audit.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

adminSDK/reseller/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/apps.order'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

apps-script/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/script.projects'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

calendar/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/calendar.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

classroom/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/classroom.courses.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

drive/activity/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const {google} = require('googleapis');
2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/activity',
2424
'https://www.googleapis.com/auth/drive.metadata.readonly'];
25+
// The file token.json stores the user's access and refresh tokens, and is
26+
// created automatically when the authorization flow completes for the first
27+
// time.
2528
const TOKEN_PATH = 'token.json';
2629

2730
// Load client secrets from a local file.

drive/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/drive.metadata.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

gmail/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/gmail.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

people/quickstart/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {google} = require('googleapis');
2121

2222
// If modifying these scopes, delete token.json.
2323
const SCOPES = ['https://www.googleapis.com/auth/contacts.readonly'];
24+
// The file token.json stores the user's access and refresh tokens, and is
25+
// created automatically when the authorization flow completes for the first
26+
// time.
2427
const TOKEN_PATH = 'token.json';
2528

2629
// Load client secrets from a local file.

0 commit comments

Comments
 (0)