Merge pull request #236 from emrysal/hotfix/remove-calendar-scope

Removed calendar scope, we shouldn't need it.
This commit is contained in:
Bailey Pumfleet 2021-06-03 21:40:11 +01:00 committed by GitHub
commit 8794c9f657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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') {