How do I implement a User Authentication API Token and private routing for my react Web Application?

I’m using Redux for state management and React Router Dom for Routing.

Please help!!

That you’re using Redux is not really relevant.

For private routes, Google throws up lots of results, for example:

It’s specific to how you want to set your app up, there isn’t a universal solution.

NOTE make sure that whatever you’re reading is talking about the version of React Router that you’re using

Re actual auth, you need a backend service to authorise against, don’t know what you have/don’t have

1 Like