- 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.
17 lines
341 B
TypeScript
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 {};
|