15 lines
306 B
Plaintext
15 lines
306 B
Plaintext
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;
|
|
}
|