async function onLogout() {
    if (typeof localStorage !== 'undefined') {
        localStorage.removeItem(AUTH_TOKEN);
    }
    if (dataClient.wsClient) restartWebsockets(dataClient.wsClient);
    try {
        await dataClient.resetStore();
    } catch (e) {
        // eslint-disable-next-line no-console
        console.log('%cError on cache reset (logout)', 'color: orange;', e.message);
    }
}
// Manually call this when user log out
Manually call this when user log out
Manually call this when user log out
async function onLogout() {
    if (typeof localStorage !== 'undefined') {
        localStorage.removeItem(AUTH_TOKEN);
    }
    if (dataClient.wsClient) restartWebsockets(dataClient.wsClient);
    try {
        await dataClient.resetStore();
    } catch (e) {
        console.log('%cError on cache reset (logout)', 'color: orange;', e.message);
    }
}
async function onLogout ( ) { if ( typeof localStorage !== 'undefined' ) { localStorage . removeItem ( AUTH_TOKEN ) ; } if ( dataClient . wsClient ) restartWebsockets ( dataClient . wsClient ) ; try { await dataClient . resetStore ( ) ; } catch ( e ) { console . log ( '%cError on cache reset (logout)' , 'color: orange;' , e . message ) ; } }
Manually call this when user log out
Manually call this when user log out
// eslint-disable-next-line no-console