🐛 Add trigger_onepick OAuth param for Google Sheets picker (#2487)

- Add `trigger_onepick=true` parameter to the Google Sheets OAuth
consent URL, required by Google for the `drive.file` scope since the
April 21, 2026 enforcement; without it the picker iframe returns 401.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Baptiste Arnaud 2026-05-12 16:55:21 +02:00 committed by GitHub
parent 8e67415766
commit babe333c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,7 @@ export const handleGetConsentUrl = async ({
access_type: "offline",
scope: googleSheetsScopes,
prompt: "consent",
trigger_onepick: "true",
state: Buffer.from(JSON.stringify(input)).toString("base64"),
});
return {