fix(desktop):add oauth session handoff

This commit is contained in:
Anish Sarkar 2026-06-23 12:55:43 +05:30
parent f481d1360a
commit fcf2485863
4 changed files with 191 additions and 6 deletions

View file

@ -143,6 +143,13 @@ interface ElectronAPI {
// Auth token sync across windows
getAuthTokens: () => Promise<{ bearer: string; refresh: string } | null>;
setAuthTokens: (bearer: string, refresh: string) => Promise<void>;
getAccessToken: () => Promise<string | null>;
refreshAccessToken: () => Promise<string | null>;
logout: () => Promise<void>;
startGoogleOAuth: () => Promise<{ ok: true }>;
onAuthChanged: (
callback: (payload: { authed: boolean; accessToken: string | null }) => void
) => () => void;
// Keyboard shortcut configuration
getShortcuts: () => Promise<{
generalAssist: string;