feat: adding session hash

This commit is contained in:
Chubby Granny Chaser 2024-06-21 02:37:49 +01:00
parent 458acb0b70
commit 9ef6329799
No known key found for this signature in database
7 changed files with 116 additions and 2 deletions

View file

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