feat: adding auth window

This commit is contained in:
Chubby Granny Chaser 2024-06-20 13:22:12 +01:00
parent 884ba47b9b
commit 71d79a4a15
No known key found for this signature in database
9 changed files with 51 additions and 10 deletions

View file

@ -143,6 +143,7 @@ contextBridge.exposeInMainWorld("electron", {
/* Auth */
signOut: () => ipcRenderer.invoke("signOut"),
openAuthWindow: () => ipcRenderer.invoke("openAuthWindow"),
onSignIn: (cb: () => void) => {
const listener = (_event: Electron.IpcRendererEvent) => cb();
ipcRenderer.on("on-signin", listener);