Friday 29 May 2020

JWT with Backend API

I'm a bit confused so I currently am creating a JWT token upon login on my backend api.my protected routes require this JWT token as a header.I'm a bit confused as how it all goes together, I assume I should be setting the JWT token as a httpOnly cookie but how would I set it as a header in future requests via Axios in js on the client?

Submitted May 30, 2020 at 01:15AM by prgrmmr7

No comments:

Post a Comment