export async function getCurrentUser() {
  const token = localStorage.getItem('jwt');
  const res = await fetch('/api/auth/user', {
    headers: { Authorization: `Bearer ${token}` },
  });
  return res.json();
}
