From 6f0a24787ac2a882ab08d88bc739c9a7267e75f4 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 2 Jul 2026 00:41:37 +0000 Subject: [PATCH] Remove OAuth scope restriction from Workforce connection test Co-Authored-By: Claude Sonnet 4.6 --- src/routes/integrations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/integrations.js b/src/routes/integrations.js index d3cff8a..b271893 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' }).toString(), + body: new URLSearchParams({ grant_type: 'password', username: creds.email, password: creds.password }).toString(), signal: AbortSignal.timeout(8000), }) if (!res.ok) throw new Error(`Workforce auth failed (${res.status})`)