Remove OAuth scope restriction from Workforce connection test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e84b916ecf
commit
6f0a24787a
1 changed files with 1 additions and 1 deletions
|
|
@ -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})`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue