Request offline_access in first office365 step
parent
1daf9bd3f7
commit
2b84612e5d
|
@ -2,7 +2,7 @@ import type { NextApiRequest, NextApiResponse } from 'next';
|
||||||
import { getSession } from 'next-auth/client';
|
import { getSession } from 'next-auth/client';
|
||||||
import prisma from '../../../../lib/prisma';
|
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) {
|
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||||
if (req.method === 'GET') {
|
if (req.method === 'GET') {
|
||||||
|
|
Loading…
Reference in New Issue