React with Auth0 SPA looses login after refresh

Yep, this just bit me too. Spent an hour looking for the answer and I found it on one of these community posts instead of the official documentation. The solution is wthat @marcopeg mentioned: You have to register your Google App by following these instructions:

https://auth0.com/docs/connections/social/google?_ga=2.126515469.1037018814.1598080903-828646138.1597388276

Otherwise, Auth0 will be using developer keys which won’t persist the session.

This should really be included on the React application quickstart documentation.

5 Likes