update grouping
This commit is contained in:
parent
e7fd5a0bfa
commit
447a68e2de
8 changed files with 86 additions and 106 deletions
|
|
@ -21,8 +21,10 @@ if (token) {
|
|||
window.localStorage.setItem(AUTH_KEY, token);
|
||||
}
|
||||
|
||||
// Load key and invoke onAuthSession to try key-login.
|
||||
const authToken = async () => {
|
||||
const { invoke } = useIpc();
|
||||
console.log("Calling auth token.")
|
||||
const { invoke } = useIpc();
|
||||
try {
|
||||
token = window.localStorage.getItem(AUTH_KEY);
|
||||
|
||||
|
|
@ -43,7 +45,7 @@ const authToken = async () => {
|
|||
}
|
||||
}
|
||||
|
||||
// authenticate on auth event
|
||||
// Gets called on socket open.
|
||||
window.ipcRenderer.on("auth", async (_event, _arg) => {
|
||||
await authToken();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue