It looks like you are using auth0 js, which we still support, but we have an improved react sdk that might make things easier.
As far as this app is concerned, it looks like you are missing the code to renew the session if the user is considered authenticated. Check out our old example:
Hi Dan!
Thanks for the react sdk info and the snippet for the Auth.js, when I add componentDidMount() to the app I still get the error
Could not get a new token (login_required: Login required).
Do I have to save the access and id tokens to localStorage with localStorage.setItem() ? do you have an example of how thats done so that the renewSession() uses the local storage?
I enabled cookies and it still doesn’t work. However, did find out that it works when using email/password vs google login (i.e., I can refresh the page and I’m still logged in). Does this help narrow it down? Thanks!