React authentication not working as expected

I am using SupaBase Auth in my React app and when I sign in, it signs in as per normal and the homepage loads, but when I refresh the web browser and access the app again. I just get a blank screen and it look like the authStateChange event hasn't fired. Is this event fired on page load or am I missing something?

Help would be greatly appreciated.
Was this page helpful?