Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: consolidate Google OAuth dependency (#7013)

[._.]/ Adam Eivy911b7dd33643
diff --git a/docs/DEPS.md b/docs/DEPS.md
index 21d4886c39..de9123330a 100644
--- a/docs/DEPS.md
+++ b/docs/DEPS.md
@@ -31,7 +31,7 @@ Before removing a Tier 3 candidate, run a transitive-dep check (`npm ls <pkg>`).
| `@googleapis/gmail` | 1 | KEEP | Messages/Gmail integration | Scoped official Google SDK |
| `chokidar` | 1 | KEEP | server file watching | Mature cross-platform file-system watcher used by server services |
| `express` | 1 | KEEP | `server/index.js` + routes | Framework |
-| `google-auth-library` | 1 | KEEP | Google OAuth | Pairs with `@googleapis/*` |
+| `google-auth-library` | — | REMOVED (direct) | Google OAuth | Consolidated under `@googleapis/calendar`'s transitive `googleapis-common` dependency |
| `kokoro-js` | 2 | REMOVED | Former in-process TTS | Replaced by the in-tree Piper backend; existing settings migrate |
| `node-pty` | 1 | KEEP | shell/terminal services | Native PTY binding (N-API) |
| `pg` | 1 | KEEP | Postgres access | Official `pg` driver |
diff --git a/server/package-lock.json b/server/package-lock.json
index 9b6b348ad0..392de4d229 100644
--- a/server/package-lock.json
+++ b/server/package-lock.json
@@ -14,7 +14,6 @@
"@novnc/novnc": "1.7.0",
"chokidar": "5.0.0",
"express": "5.2.1",
- "google-auth-library": "11.0.2",
"node-pty": "1.2.0-beta.15",
"pg": "8.23.0",
"playwright-core": "1.63.0",
@@ -2347,46 +2346,6 @@
"node": ">= 6"
}
},
- "node_modules/google-auth-library": {
- "version": "11.0.2",
- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-11.0.2.tgz",
- "integrity": "sha512-vzpgPutxrghPsnjrjpzLX2bdv8IOL719Rh0oEjGnQu8YCIbnbMuTTQ5zU9LcKvLdOPgCxBwppbvnhgW90Qna5Q==",
- "license": "Apache-2.0",
- "dependencies": {
- "base64-js": "^1.3.0",
- "ecdsa-sig-formatter": "^1.0.11",
- "gaxios": "^7.1.4",
- "gcp-metadata": "^9.0.0",
- "google-logging-utils": "^2.0.0",
- "jws": "^4.0.0"
- },
- "engines": {
- "node": ">=22"
- }
- },
- "node_modules/google-auth-library/node_modules/gcp-metadata": {
- "version": "9.0.3",
- "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-9.0.3.tgz",
- "integrity": "sha512-2YYnIlHaKBGT2IPg3G2M57hia9Galz15zsEOvw9T3oRf0lSn6KN6VcHQLqby7x8ksYKnjXvp3rp2KJyLCN6zfQ==",
- "license": "Apache-2.0",
- "dependencies": {
- "gaxios": "^7.1.3",
- "google-logging-utils": "^2.0.0",
- "json-bigint": "^1.0.0"
- },
- "engines": {
- "node": ">=22"
- }
- },
- "node_modules/google-auth-library/node_modules/google-logging-utils": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-2.0.1.tgz",
- "integrity": "sha512-HMhaQghlOTvbcb3c4T5jmmOMtG3JUF1iOQMezaJXL86CDS+Tm2vHd0IeLFRAx3+ewd+bo9E1HFHoy17X5aJa9A==",
- "license": "Apache-2.0",
- "engines": {
- "node": ">=22"
- }
- },
"node_modules/google-logging-utils": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
diff --git a/server/package.json b/server/package.json
index 001db3f0a4..0a15bd9a36 100644
--- a/server/package.json
+++ b/server/package.json
@@ -27,7 +27,6 @@
"@novnc/novnc": "1.7.0",
"chokidar": "5.0.0",
"express": "5.2.1",
- "google-auth-library": "11.0.2",
"node-pty": "1.2.0-beta.15",
"pg": "8.23.0",
"playwright-core": "1.63.0",
diff --git a/server/services/googleAuth.js b/server/services/googleAuth.js
index e4b0d1194a..cb14f9ec96 100644
--- a/server/services/googleAuth.js
+++ b/server/services/googleAuth.js
@@ -1,8 +1,9 @@
-import { OAuth2Client } from 'google-auth-library';
+import { auth } from '@googleapis/calendar';
import { join } from 'path';
import { atomicWrite, ensureDir, PATHS, tryReadFile } from '../lib/fileUtils.js';
import { ServerError } from '../lib/errorHandler.js';
+const { OAuth2: OAuth2Client } = auth;
const AUTH_DIR = join(PATHS.calendar, 'google-auth');
const CREDENTIALS_FILE = join(AUTH_DIR, 'credentials.json');
const TOKENS_FILE = join(AUTH_DIR, 'tokens.json');