This commit is contained in:
2020-07-07 22:39:48 +00:00
parent f2cea94c63
commit 2e3df8d638
3 changed files with 14 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
/* xeslint-disable */
import decode from "jwt-decode";
import initialize from "./initialize";
import notifypoll from "./notifypoll";
export function processLogin(authResponse, loggedInWithKnownPassword) {
return new Promise(async function(resolve, reject) {
@@ -82,12 +83,15 @@ export function processLogin(authResponse, loggedInWithKnownPassword) {
reject(err);
}
//start notification polling
notifypoll.startPolling();
resolve();
//-------------------------------------------------
});
}
export function processLogout() {
notifypoll.stopPolling();
if (window.$gz.store.state.authenticated) {
window.$gz.store.commit(
"logItem",

View File

@@ -0,0 +1,5 @@
/* xeslint-disable */
let _timerId = null;
export default { startPolling() {}, stopPolling() {} };