Skip to content

Commit 681dca0

Browse files
fix: restore auth on startup (#18)
1 parent 9a3c3f0 commit 681dca0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

workspace-mcp-server/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ async function main() {
5555
}
5656

5757
const authManager = new AuthManager(SCOPES);
58+
// Trigger auth flow immediately on startup
59+
await authManager.getAuthenticatedClient();
60+
5861
const driveService = new DriveService(authManager);
5962
const docsService = new DocsService(authManager, driveService);
6063
const peopleService = new PeopleService(authManager);

0 commit comments

Comments
 (0)