From 2b84612e5d2e05aabccbee714511209d39da9362 Mon Sep 17 00:00:00 2001 From: nicolas Date: Mon, 7 Jun 2021 19:30:09 +0200 Subject: [PATCH] Request offline_access in first office365 step --- pages/api/integrations/office365calendar/add.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/integrations/office365calendar/add.ts b/pages/api/integrations/office365calendar/add.ts index ac263833fe..02e695a321 100644 --- a/pages/api/integrations/office365calendar/add.ts +++ b/pages/api/integrations/office365calendar/add.ts @@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from 'next'; import { getSession } from 'next-auth/client'; import prisma from '../../../../lib/prisma'; -const scopes = ['User.Read', 'Calendars.Read', 'Calendars.ReadWrite']; +const scopes = ['User.Read', 'Calendars.Read', 'Calendars.ReadWrite', 'offline_access']; export default async function handler(req: NextApiRequest, res: NextApiResponse) { if (req.method === 'GET') {