godcrm/electron/ipc/oauthStub.ts
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

11 lines
493 B
TypeScript

import { ipcMain } from 'electron';
// Google OAuth via loopback — STUB in v1.
// Real impl (system-browser loopback flow + token exchange) is out of scope for ADR-0023 Phase 2.
// Returning a structured failure lets LoginForm.tsx render the fallback web-OAuth path without crashing.
export function registerOAuthStub(): void {
ipcMain.handle('oauth:google:open', async () => ({
success: false,
error: 'Google OAuth not implemented in desktop v1 — use web login flow',
}));
}