How can I secure REST APIs using JWT authentication in Node.js and Express?
I’m building an Express API with user authentication. I plan to use JWT for token-based security but I’m unsure about token storage, refresh tokens, and best practices. Can someone guide me?
Try storing your JWTs in HTTP-only cookies, use short-lived access tokens with refresh tokens to maintain sessions securely, and always validate tokens on incoming requests in your Express API.
DELL-Joey C
Moderator
•
4170 Posts
•
20965 Points
0
0
Posted September 28th, 2025 23:18
Hi,
In what product that you would like to build that with? You are posting on Networking board, I assume you're looking into the switches?
Or are you referring in general?
DELL-Joey C
Social Media and Communities Professional
Dell Technologies | Enterprise Support Services
#IWork4Dell
Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did.