This commit is contained in:
Kfir Dayan 2023-07-26 14:14:10 +03:00
parent bbf1865f1a
commit a1ae8c98d1
2 changed files with 2 additions and 4 deletions

View file

@ -24,8 +24,7 @@ class GoogleCalendar {
email: this.clientEmail, email: this.clientEmail,
key: this.googlePrivateKey, key: this.googlePrivateKey,
scopes: [ scopes: [
'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar'
'https://www.googleapis.com/auth/calendar.events'
] ]
}); });
const { access_token } = await this.JWT_client.authorize(); const { access_token } = await this.JWT_client.authorize();

View file

@ -28,8 +28,7 @@ export default class GoogleCalendar {
email: this.clientEmail, email: this.clientEmail,
key: this.googlePrivateKey, key: this.googlePrivateKey,
scopes: [ scopes: [
'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar'
'https://www.googleapis.com/auth/calendar.events'
] ]
}); });
const { access_token } = await this.JWT_client.authorize(); const { access_token } = await this.JWT_client.authorize();