I referred this thread How to have the login page as the default if a user is not logged in - #6 by konrad.sopala and it worked for me. Just the problem is its showing LoginButton for me on the page instead or automatically redirecting to login page if user is Nor Authenticated. I’ll appreciate any feedback.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Need a way to load application on window load without loop due to redirect after login with spa... | 2 | 3976 | March 2, 2018 | |
| React useAuth undefined when logging in and then going to different page/url | 4 | 8637 | July 31, 2019 | |
| isAuthenticated always returns false (React) | 4 | 16482 | April 10, 2021 | |
| Is login via auth0 possible without reloading my SPA? | 4 | 4726 | August 28, 2019 | |
| App infinitely redirecting after login ReactJS {PLEASE HELP} | 3 | 6462 | November 4, 2022 |