User logged out on page refresh (Heroku React App)

I made a single page React app and set up Auth0 for user authentication. I set up silent authentication so that user’s don’t get logged out on page refresh and this works fine locally. However, after creating a Heroku app, the user is logged out on page refresh, or when navigating between “secured routes”.
Could anyone please help me with this issue?

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?