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 | |
---|---|---|---|---|
How to keep login session when refreshing page in SPA | 5 | 7507 | April 29, 2021 | |
Check auth0 session when React SPA starts | 5 | 1860 | January 2, 2024 | |
SSO/SAML for React SPA | 4 | 966 | December 22, 2023 | |
Getting logged out after refreshing on localhost - React.js SPA | 7 | 19011 | August 10, 2019 | |
React SPA doesn't login on refresh | 1 | 4718 | December 17, 2019 |