remove user-message & agen-message event listeners

This commit is contained in:
riqo 2021-02-24 11:42:05 -06:00
commit 3bf9f54df2
11 changed files with 51 additions and 98 deletions

View file

@ -16,10 +16,9 @@ const AUTH_KEY = 'crimata_token';
const token = window.localStorage.getItem(AUTH_KEY);
const authToken = async () => {
const { data, invoke } = useIpc('auth-session');
const { invoke } = useIpc();
try {
await invoke(token);
state.accessToken = data.value;
state.accessToken = await invoke('auth-session', token);
}
catch(e) {
state.error = e;