0👍
✅
Figured out by myself.
i stored the userId, firstname and lastname in the localStorage on login then i did
formData.append('firstname', localStorage.getItem("firstname"));
formData.append('lastname', localStorage.getItem("lastname"));
formData.append('userId', localStorage.getItem("userId"));
dont know if its the right way to do it but it works so…
Source:stackexchange.com