DEV Community

Discussion on: Securing Node.js RESTful APIs with JSON Web Tokens

Collapse
 
meilon profile image
Christian Arnold

I'd put the JWT in a cookie and expand the middleware to check if there is one, too. The it works like a session, it's more secure (keyword: session hijacking)