Open evanugarte opened 1 week ago
the endpoint is here
https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/api/main_endpoints/routes/User.js#L171
where we call it from the frontend is here
https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/src/APIFunctions/User.js#L21
at the moment we are sending the token as part of the JSON body, when instead we should send the token as part of the HTTP header.
the endpoint is here
https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/api/main_endpoints/routes/User.js#L171
where we call it from the frontend is here
https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/src/APIFunctions/User.js#L21
at the moment we are sending the token as part of the JSON body, when instead we should send the token as part of the HTTP header.
game plan