© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
50 replies
! FROZIAK

Realtime RLS problem

RLSrealtime🟡javascript
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:
createBrowserClient(supabaseUrl!, supabaseKey!, {
    accessToken: async () => {
      return (
        (await auth.currentUser?.getIdToken(/* forceRefresh */ false)) ?? null
      );
    },
  });
createBrowserClient(supabaseUrl!, supabaseKey!, {
    accessToken: async () => {
      return (
        (await auth.currentUser?.getIdToken(/* forceRefresh */ false)) ?? null
      );
    },
  });

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?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Realtime not working with RLS
SupabaseSSupabase / help-and-questions
4y ago
Problem with RLS
SupabaseSSupabase / help-and-questions
5mo ago
Problem with RealTime
SupabaseSSupabase / help-and-questions
2mo ago
Clone schema with RLS and Realtime
SupabaseSSupabase / help-and-questions
3y ago