© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
36 replies
KOnOO

Realtime RLS not working with anon user

Hello, im writing because my realtime subscription doesn’t work anymore since i have created some RLS polices. I got a table named message with some different policies for anon and authenticated users. For authenticated users it’s working well there is no problem, but for anon user i got a special postgres function to verify custom jwt tokens in the request headers.
I’ve setup all the different custom headers for the realtime subscription and it seems do be correctly triggered (postgres logs). But at the end even if my function return true to my policy the realtime does not send me any events. The policy work for normal fetch.
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

Similar Threads

Realtime not working with RLS
SupabaseSSupabase / help-and-questions
4y ago
(solved) Realtime subscriptions not working with RLS?
SupabaseSSupabase / help-and-questions
4y ago
Realtime not working with Custom Jwt with RLS
SupabaseSSupabase / help-and-questions
3mo ago
RLS doesn't work with Anon
SupabaseSSupabase / help-and-questions
6mo ago