Added User.Read explicitly to office 365 oauth scopes, as it seems some setups do not automatically apply this scope.

This commit is contained in:
Alex van Andel committed 2021-04-22 13:27:57 +00:00
1 parent 8010abf15a
commit 6a9632bb12
2 files changed
+3 -3

No files matched your search

@@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from 'next';
import { getSession } from 'next-auth/client';
import prisma from '../../../../lib/prisma';
const scopes = ['Calendars.Read', 'Calendars.ReadWrite'];
const scopes = ['User.Read', 'Calendars.Read', 'Calendars.ReadWrite'];
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'GET') {