Commit 2d3d0a66c25c
Changed files (1)
dots
config
claude
skills
google-workspace
scripts
dots/config/claude/skills/google-workspace/scripts/common.js
@@ -30,7 +30,7 @@ export const DEFAULT_SCOPES = [
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/gmail.modify",
"https://www.googleapis.com/auth/directory.readonly",
- "https://www.googleapis.com/auth/presentations.readonly",
+ "https://www.googleapis.com/auth/presentations",
"https://www.googleapis.com/auth/spreadsheets.readonly",
];
@@ -233,11 +233,11 @@ export async function authorize(options = {}) {
loadRuntimeDeps();
- // Try Application Default Credentials first (from gcloud)
- const adcClient = await authorizeWithADC(scopes);
- if (adcClient) {
- return adcClient;
- }
+ // Skip ADC — gcloud ADC lacks Workspace scopes
+ // const adcClient = await authorizeWithADC(scopes);
+ // if (adcClient) {
+ // return adcClient;
+ // }
// Fall back to custom OAuth client with stored token
ensureConfigDir();