Realtime RLS problem
hi im trying to make realtime listener for my project its next js 16 + firebase Auth and supabase for database
im creating browser client like this:
i also have RLS set to allow users to read and change only theirs profiles.
I normaln fetches and changes its working perfectly but when im trying to listen for changes its nor receiving any changes ene if its successfully subscribed (and yes i hav enabled realtime in dashboard) but everything changes whjen i disable RLS for a moment and realtime works fine.
my question is that how can i fix that some way to my realtime sistener work witk RLS and firbase auth setup?
im creating browser client like this:
i also have RLS set to allow users to read and change only theirs profiles.
I normaln fetches and changes its working perfectly but when im trying to listen for changes its nor receiving any changes ene if its successfully subscribed (and yes i hav enabled realtime in dashboard) but everything changes whjen i disable RLS for a moment and realtime works fine.
my question is that how can i fix that some way to my realtime sistener work witk RLS and firbase auth setup?