Server side JWT for my react-redux application

I am a beginner with react and redux. I have searched a lot but all I get is server-side rendering, but I don’t want that (correct me if I’m wrong). What I want is this:

My react-redux app calls an API to get some JSON response. The problem is that there is no user authentication (and won’t be). Therefore I want to have a Token for my API calls. I need my react-redux app to obtain a token on the server-side from my locally hosted PHP (Laravel) app through an API or HTTP request. Then set that token for my client-side of the react-redux app.

I simply don’t know where to start and how to have this server.js in my react-redux app.


Here is a good starter tutorial explaining how to hookup use Node and React together.

Leave a Reply

Your email address will not be published. Required fields are marked *