Keeping user logged in on page refresh

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?

Hello @devinat1! I understand your SPA logs you out after refresh the page.

I found a knowledge article that gives a few reasons for this. Please read it over and see if any relate to you.

I hope this helps!

Best,
Alex

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.