Request offline_access in first office365 step
This commit is contained in:
		
							parent
							
								
									1daf9bd3f7
								
							
						
					
					
						commit
						2b84612e5d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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') { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 nicolas
						nicolas