Removed calendar scope, we shouldn't need it.

pull/236/head
Alex van Andel 2021-06-03 00:05:54 +00:00
parent e49a652afa
commit 1f6e3f8f2e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import prisma from '../../../../lib/prisma';
const {google} = require('googleapis');
const credentials = process.env.GOOGLE_API_CREDENTIALS;
const scopes = ['https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events', 'https://www.googleapis.com/auth/calendar'];
const scopes = ['https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events'];
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'GET') {