Request offline_access in first office365 step

pull/253/head
nicolas 2021-06-07 19:30:09 +02:00
parent 1daf9bd3f7
commit 2b84612e5d
1 changed files with 1 additions and 1 deletions

View File

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