[object Object]

← back to Api Token Dashboard

dashboard: read Drive token from its real .env (thesetdecorator) + accurate setup instructions

4c55a10fcf37eb8c01c70a05efd4414cd4ac8a5b · 2026-07-01 14:13:54 -0700 · Steve Abrams

Files touched

Diff

commit 4c55a10fcf37eb8c01c70a05efd4414cd4ac8a5b
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Jul 1 14:13:54 2026 -0700

    dashboard: read Drive token from its real .env (thesetdecorator) + accurate setup instructions
---
 server.mjs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server.mjs b/server.mjs
index bbe74ea..d492a9a 100644
--- a/server.mjs
+++ b/server.mjs
@@ -77,11 +77,12 @@ function catalog() {
     probe: () => googleRefresh(gid, gs, g.GOOGLE_CALENDAR_REFRESH_TOKEN), envName: 'GOOGLE_CALENDAR_REFRESH_TOKEN',
   });
 
+  const tsd = loadEnv(`${HOME}/Projects/thesetdecorator/.env`); // Drive token's real home (per routes.json)
   add({
-    key: 'google-drive', name: 'Google Drive', category: 'Google · Other', tag: last4(s.GOOGLE_DRIVE_REFRESH_TOKEN),
+    key: 'google-drive', name: 'Google Drive (TheSetDecorator photo-import)', category: 'Google · Other', tag: last4(tsd.GOOGLE_DRIVE_REFRESH_TOKEN),
     fixUrl: 'https://console.cloud.google.com/apis/credentials',
-    instructions: 'If MISSING/DEAD: re-run the Drive OAuth consent for the app that owns GOOGLE_DRIVE_CLIENT_ID, capture the new refresh token, route via the secrets skill.',
-    probe: () => googleRefresh(s.GOOGLE_DRIVE_CLIENT_ID, s.GOOGLE_DRIVE_CLIENT_SECRET, s.GOOGLE_DRIVE_REFRESH_TOKEN), envName: 'GOOGLE_DRIVE_REFRESH_TOKEN',
+    instructions: 'NOT SET UP — thesetdecorator/photo-import/ingest-drive.js needs it but it was never minted. Fix: run `node ~/Projects/thesetdecorator/photo-import/scripts/drive-oauth-setup.js`, consent as steveabramsdesigns@gmail.com (read-only Drive scope), paste the printed GOOGLE_DRIVE_REFRESH_TOKEN → secrets skill routes it to thesetdecorator/.env.',
+    probe: () => googleRefresh(tsd.GOOGLE_DRIVE_CLIENT_ID, tsd.GOOGLE_DRIVE_CLIENT_SECRET, tsd.GOOGLE_DRIVE_REFRESH_TOKEN), envName: 'GOOGLE_DRIVE_REFRESH_TOKEN',
   });
 
   add({

← b39d577 API & token connection dashboard: live status + fix links (r  ·  back to Api Token Dashboard  ·  dashboard: probe George Calendar via the real GMAIL client p 12c500e →