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 | |
---|---|---|---|---|
App infinitely redirecting after login ReactJS {PLEASE HELP} | 3 | 6373 | November 4, 2022 | |
isAuthenticated always returns false (React) | 4 | 16377 | April 10, 2021 | |
Navigate the user directly to the login page if not authenticated | 4 | 3211 | August 22, 2024 | |
Redirect to specific route | 3 | 636 | January 14, 2024 | |
'user' is undefined and isAuthenticated returns false after login | 4 | 5986 | July 29, 2022 |