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 / #1449

Open evanugarte opened 1 week ago

evanugarte commented 1 week ago

the endpoint is here

https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/api/peripheral_api/routes/Cleezy.js#L23

where we call it from the frontend is here

https://github.com/SCE-Development/Clark/blob/7caadc0adbfd83cb9ec866f9113ef41a19a30afb/src/APIFunctions/Cleezy.js#L7

at the moment we are sending the token as part of the URL query parameters body, when instead we should send the token as part of the HTTP header.

game plan