SCE-Development / Clark

Made entirely by SJSU students, this is the Software and Computer Engineering Society's outward face on the internet.
https://sce.sjsu.edu
MIT License
28 stars 11 forks source link

pass the JWT in the HTTP header to /users #1447

Open evanugarte opened 1 week ago

evanugarte commented 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.

game plan