My React with Auth0 app lost data and get log out upon page refresh

I implemented a React with Auth0. But when I refresh the page, I got log out and all data lost. How to make my application work properly? I have followed an article about register my app with Google App but the problem still happened.
Please let me know how to fix this.
Thanks