I have been following this tutorial to implement auth0 on my SPA React application: The Complete Guide to React User Authentication with Auth0
I have implemented everything in the blog. When I click on react router routes, the auth0 info is still saved and all information shows without having to re-authenticate. However, when I refresh the page, I get logged out and have to log in again. This happens silently, but it is tedious having to reauthenticate after reloading a page.
Is there a way to keep the user logged in even upon refresh of the page, up until the user clears cookies?