Files
ERitors-Scribe-Desktop/electron.d.ts
natreex de03dedaf0 Add Electron main process with token management and navigation setup
- Implement main and login windows for Electron.
- Integrate `electron-store` for secure token storage and management.
- Setup IPC handlers for authentication.
- Update dependencies to support Electron, including `vite`, `react-router-dom`, and plugins.
2025-11-16 13:55:08 -05:00

17 lines
341 B
TypeScript

export interface IElectronAPI {
platform: NodeJS.Platform;
getToken: () => Promise<string | null>;
setToken: (token: string) => Promise<boolean>;
removeToken: () => Promise<boolean>;
loginSuccess: (token: string) => void;
logout: () => void;
}
declare global {
interface Window {
electron: IElectronAPI;
}
}
export {};