Please share your full code when you are asking for help with an issue. The supabase docs state that you should not be adding await
's inside of the onAuthStateChange
as this can cause a dead-lock in the function. https://supabase.com/docs/reference/javascript/auth-onauthstatechange