const handleLogOut = (navigate) => {
  localStorage.removeItem('Auth');
  localStorage.removeItem('session');

  if (navigate) {
    navigate('/signin', { replace: true });
  } else {
    window.location.replace('/signin');
  }
};

export default handleLogOut;