The Call Kent Podcast

Securing Routes in React Router Framework


Listen Later

I’m transitioning from SPAs with REST APIs to SSR applications using React Router Framework. While I’ve used layout routes and tools like SWR/React Query for route protection in React Router DOM, I just found out that actions in React Router Framework are still vulnerable to unauthorized POST requests. I use JWT auth with tokens stored in cookies—do I need to verify the JWT in every action on each route, or is there a global solution like Fastify’s onRequest hook?

  • React Router v7.3.0 changelog which introduces middleware support
  • Securing Routes in React Router Framework
    ...more
    View all episodesView all episodes
    Download on the App Store

    The Call Kent PodcastBy Kent C. Dodds

    • 5
    • 5
    • 5
    • 5
    • 5

    5

    2 ratings


    More shows like The Call Kent Podcast

    View all
    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    285 Listeners

    Software Engineering Daily by Software Engineering Daily

    Software Engineering Daily

    628 Listeners

    Soft Skills Engineering by Jamison Dance and Dave Smith

    Soft Skills Engineering

    275 Listeners

    The Daily by The New York Times

    The Daily

    111,191 Listeners

    Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

    Syntax - Tasty Web Development Treats

    988 Listeners

    PodRocket - A web development podcast from LogRocket by LogRocket

    PodRocket - A web development podcast from LogRocket

    58 Listeners

    devtools.fm: Developer Tools, Open Source, Software Development by Andrew Lisowski, Justin Bennett

    devtools.fm: Developer Tools, Open Source, Software Development

    27 Listeners

    Mostly Technical by Ian Landsman and Aaron Francis

    Mostly Technical

    15 Listeners