diff --git a/src/routes/integrations.js b/src/routes/integrations.js index 8e25b68..bde78d5 100644 --- a/src/routes/integrations.js +++ b/src/routes/integrations.js @@ -92,7 +92,7 @@ export async function integrationRoutes(app) { const res = await fetch(`${baseUrl}/api/oauth/token`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password, scope: 'me department' }).toString(), + body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password, scope: 'department' }).toString(), signal: AbortSignal.timeout(8000), }) if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)