React SPA Session does not persist

I’m trying to follow this tutorial as I create my own application Auth0 React SDK Quickstarts: Login

I was able to successfully log in using the GitHub connection and database email/password, but neither of these sessions is persisting between page loads. For the GitHub connection I am using my own client id (not the Auth0 development keys as seems to be the problem on similar posts). I tried with both the classic and new Universal Login features.

I also tested by cloning the tutorial project on GitHub and confirmed that the sessions are not persisting after successfully logging in.
https://github.com/auth0-samples/auth0-react-samples/tree/master/01-Login

Here is the GitHub repo for my test application. I have, for the most part, copied and pasted the relevant pieces of code from the above tutorial.
https://github.com/yurm04/chronicler-notes

Any help is appreciated!

Hey there @yurm04!

Would you mind creating a GitHub issue in the auth0-react-samples repo providing as much context to your struggle as possible so that the repo maintainers can take a look at it? I think it will be the most effective way of solving it. Once you open it make sure to share the link to the issue here so I can ping them. Thanks!

Have you had a chance to see my previous message?

@konrad.sopala thanks for the response. Here is the issue I created Session does not persist · Issue #170 · auth0-samples/auth0-react-samples · GitHub

1 Like

Thanks a lot! I will ping repo maintainers to let them know so they look at it!

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