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 | |
---|---|---|---|---|
useAuth0().isAuthenticated returns initialy false then true | 8 | 14361 | February 1, 2022 | |
isLoading gets true, user gets undefined and isAuthenticated gets false after refresh the page in React | 0 | 2426 | October 30, 2022 | |
How to keep login session when refreshing page in SPA | 5 | 7905 | April 29, 2021 | |
onRedirectCallback in React-SPA doesn't redirect to original link | 7 | 8913 | November 4, 2022 | |
Build currect Redirect in auth0-spa-js React app and custom pages | 0 | 2742 | April 29, 2022 |