NEUROFUSIONInc / fusion

Record changes in health, behavior and brain activity locally on your browser or mobile phone. Discord: https://discord.gg/sqsuzXWE3K
https://usefusion.ai/research
Other
35 stars 8 forks source link

Securing APIs with JWT Auth & Validation for requests #31

Closed oreHGA closed 1 year ago

oreHGA commented 1 year ago

In prep for launch this weekend, we need to make sure all our endpoints are 🔐

Now, when you login to fusion, we make a request to /api/userlogin which then (creates a user if not & returns details) See implementation

One thing to keep in mind though is that our analytics runner will still need to be able to access the api ( not sure what the best approach here is since it needs to access "regardless" of the user