UNSOLVED

YashSmith

updated

1 year ago

Y

YashSmith

2 Intern

•

28 Posts

•

2 Points

0

274

September 27th, 2025 13:06

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?

  • 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. 

  • okpromocode.fr

    1 Rookie

    •

    1 Message

    •

    2 Points

    0

    0

    Posted September 30th, 2025 05:07

    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.