So it’s actually a bit tricky. You would potentially need to put some logic on your top-level component, likely App to always trigger the login action if the user is not authenticated
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Build currect Redirect in auth0-spa-js React app and custom pages | 0 | 2764 | April 29, 2022 | |
| React - Show login page at the start of the application | 0 | 175 | June 26, 2024 | |
| Auth0 with spa react app authenticate on load | 1 | 736 | November 22, 2023 | |
| Logging in from landing page | 2 | 1688 | December 15, 2022 | |
| Navigate the user directly to the login page if not authenticated | 4 | 3272 | August 22, 2024 |