Since I made Supabase client a "request scope" client, sometimes OAuth stop working (strangely, only in Firefox).
With SSR, React process 2 times : one on server and one on browser.
Supabase client listener is unsubscribed when useEffect unmounts on server side, and it doesn't listen again when re-run client side (hard time to debug that :D).
Client side, we can reuse the same client, it's safe.
Since I made Supabase client a "request scope" client, sometimes OAuth stop working (strangely, only in Firefox). With SSR, React process 2 times : one on server and one on browser. Supabase client listener is unsubscribed when useEffect unmounts on server side, and it doesn't listen again when re-run client side (hard time to debug that :D). Client side, we can reuse the same client, it's safe.