User has Authenticated role, and Authenticated role has the update permission.
here’s my code:
const userUrl = new URL("/api/users/me", backendUrl);
const updateUser = await fetch(userUrl, {
method: "PUT",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${data.jwt}`,
},
// cache: "no-cache",
body: JSON.stringify({
emailVerified: new Date(),
}),
});
(the jwt token is 1000000% correct. and, I mean, if it wasn’t I’d be getting 403 FORBIDDEN, not 404, sooo)
using Postman yields the same result: (see ss)
This topic has been created from a Discord post (1285538661223370833) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord