async function onLogout(apolloClient) {
  if (typeof localStorage !== 'undefined') {
    localStorage.removeItem(AUTH_TOKEN)
  }

  if (apolloClient.wsClient) restartWebsockets(apolloClient.wsClient)
}
// Manually call this when user log out
Manually call this when user log out
Manually call this when user log out
async function onLogout(apolloClient) {
  if (typeof localStorage !== 'undefined') {
    localStorage.removeItem(AUTH_TOKEN)
  }
  if (apolloClient.wsClient) restartWebsockets(apolloClient.wsClient)
}
async function onLogout ( apolloClient ) { if ( typeof localStorage !== 'undefined' ) { localStorage . removeItem ( AUTH_TOKEN ) } if ( apolloClient . wsClient ) restartWebsockets ( apolloClient . wsClient ) }
Manually call this when user log out
Manually call this when user log out