Why is my supabase API call not returning?
Last edited: 1/15/2025
There is currently a bug in supabase-js which results in a deadlock if any async API call is made in onAuthStateChange code. If a call is made in the handler then the next Supabase call anywhere using that client will hang and not return.
For now a workaround is needed until this is fixed.
https://github.com/supabase/gotrue-js/issues/762#issuecomment-1780006492