rieve User's Analysis History
function getUserHistory(token) {
  fetch(`${url}/user/history`, { // Replace with your API endpoint
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${token}`, // Include the token in the Authorization header
    },
  })
  .then(response => response.json())
  .then(data => {
    console.log('User history:', data);
    // Handle success, e.g., display user history
  })
  .catch(error => {
    console.error('Error fetching user history:', error);
    // Handle err