mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding session hash
This commit is contained in:
parent
458acb0b70
commit
9ef6329799
7 changed files with 116 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue