export default async function validateUser(userId) { const res = await fetch( `http://${import.meta.env.VITE_API_URL}/api/users/${userId}/validate`, { method: "POST", credentials: "include", headers: { Accept: "application/json", }, } ); return res.ok; }