upgrading auth functionality

This commit is contained in:
Andrew Gundersen 2021-03-23 10:24:06 -05:00
commit 9bf7496899
12 changed files with 92 additions and 362 deletions

View file

@ -72,7 +72,7 @@ export default function useAudioInputController (typing: Ref) {
const message = renderMessage("", "", "", "sf")
emitter.emit("self-message", message);
post('update-recorder', {
const audio = invoke('update-recorder', {
isRecording: false,
uid: message.uid
});

View file

@ -55,19 +55,17 @@
window.addEventListener("keydown", onEscape);
}
// When user clicks logout button in settings.
// We ask server to log us out.
const onLogout = () => {
logout();
router.push({ name: "login" });
post("logout", "")
}
post("auth-request", "logout")
}
return {
onActive,
toggleSettings,
onLogout
}
}
}
})
</script>