How to auto login in SPA?

Hi, just setUp Auth0 to work with SPA with useAuth0 hook. It is working overall but i have an issue:

After i reload the page, i got kinda logged out. And i need to manually press Login butt to be logged again (without login window and requesting a password).

I have noticed that this is because auth cookies are removed after i reload the page.

And here is the question: how to autologin after page reload?

Solved this with a help of (sorry cant add link - forum disable this)

<Auth0Provider
      cacheLocation="localstorage" // here add "localstorage"
1 Like

Hi @skorphil

Thank you for sharing this with the Community!

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