Fix more electron API issues (ssh/oidc), make server manager force API check, and login saving.

This commit is contained in:
LukeGus
2025-09-11 16:43:36 -05:00
parent ba6ca5de52
commit aa8738469f
5 changed files with 202 additions and 39 deletions

View File

@@ -28,7 +28,11 @@ contextBridge.exposeInMainWorld('electronAPI', {
isDev: process.env.NODE_ENV === 'development',
// Generic invoke method
invoke: (channel, ...args) => ipcRenderer.invoke(channel, ...args)
invoke: (channel, ...args) => ipcRenderer.invoke(channel, ...args),
// OIDC handlers
oidcSuccess: (data) => ipcRenderer.invoke('oidc-success', data),
oidcError: (data) => ipcRenderer.invoke('oidc-error', data)
});
// Also set the legacy IS_ELECTRON flag for backward compatibility