-
Notifications
You must be signed in to change notification settings - Fork 388
Closed
Labels
Description
Environment
- gws 0.5.0
- macOS 15 (Apple Silicon, M4)
- Installed via
npm install -g @googleworkspace/cli
Steps to Reproduce
gws auth setup— creates GCP project, enables APIs ✅gws auth login— OAuth flow completes, credentials encrypted ✅gws auth status— showstoken_valid: true,auth_method: oauth2,encrypted_credentials_exists: true✅gws drive files list --params '{ "pageSize": 3 }'— returns 401
Observed Behavior
gws auth loginreturnsstatus: successbutaccount: "(unknown)"gws auth listshows{ "accounts": [], "count": 0, "default": "" }gws auth exportsuccessfully decrypts and outputs valid credentials (refresh_token, client_id, client_secret)gws auth statusshowstoken_valid: true- All API commands (
drive,gmail, etc.) fail with 401: "No credentials provided" - Setting
GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILEto exported JSON also does not work
Expected Behavior
After successful gws auth login, commands should authenticate using stored credentials.
Additional Notes
- OAuth consent screen was published (production mode)
- Client secret was regenerated manually via Cloud Console
gws auth login --helpstarts OAuth flow instead of showing help- 43 APIs enabled on the project
- Credentials file exists at
~/.config/gws/credentials.encwith valid AES-256-GCM encryption
Reactions are currently unavailable