Couldn't a malicious actor forge a JWT and would pass this authwall? The code only checks local storage for a JWT, it doesn't auth it with the backend. How would you implement a Axios call with this?
Discovered code through a meetup, went to bootcamp, now in my first full-time developer role.
Currently soaking up everything I can, like a big ol' knowledge sponge...
Hi Zachary, thanks for reading. This is really only a proof of concept, a record of my learnings if you like. The backend and axios calls are outside of the scope of this particular article, but if you figure out you should definitely write it up, I'd love to read it!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Couldn't a malicious actor forge a JWT and would pass this authwall? The code only checks local storage for a JWT, it doesn't auth it with the backend. How would you implement a Axios call with this?
Hi Zachary, thanks for reading. This is really only a proof of concept, a record of my learnings if you like. The backend and axios calls are outside of the scope of this particular article, but if you figure out you should definitely write it up, I'd love to read it!