kaleguy
KKinde
•Created by kaleguy on 8/28/2024 in #💻┃support
Routing on React?
React SDK, app create with create-react, using "react-router-dom": "^6.26.1".
This isn't urgent because I'm not using any routing at the moment and may not need it. I made a different branch to add routing so that I could bookmark pages, but although the routes work on that branch, the auth causes a redirect to login.
The issue is simpler than routing. On my current branch with no routing, I can log in fine. However, if I enter any other url than root, like /hello, the isAuthenticated flag is "false". If I put a breakpoint in my main App.tsx file, when I enter / isAuthenticated is true. When I enter /hello, isAuthenticated if false. So routing can never work. Is this something that I would set up in Kinde?
2 replies