Search code examples
reactjsauth0

Persisting login after refresh


Login is not persisting in reactjs application. I am using spa reactjs sample. Here is a link https://auth0.com/docs/quickstart/spa/react. I have to login everytime if I refresh the page. Please suggest what needs to be done to persist login after refresh.


Solution

  • please follow this official document points. It might help you

    https://auth0.com/docs/quickstart/spa/react/01-login#restoring-login-state-with-social-providers