Rails React route is not working with Session Auth (JWT)

user7856
Tourist
8 0 3

Hi, I'm changing my embedded app auth from cookie to session. Currently I'm using Axios to fetch data and with passing session to axios, I can fetch REST data but I'm facing problem with Route.

When I'm going to direct link like /app/settings, its working fine but when I am trying to go from React route path, its not going to correct page and showing me login page, so I think its a session problem. So is there any way to pass session in react-router-dom 

Screen Shot 2020-09-15 at 00.26.53.png

 

Replies 0 (0)