© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
1 reply
kurtj123

Next.js SSR RLS

I can't seem to make RLS work when doing SSR, I create my RLS policy for authenticated users and it doesn't show the posts, but when I turn RLS off they display - even though when I getSession() it shows that I am logged in and fully authenticated. Am I missing something?
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

Rate limiting with Supabase + Next.js SSR
SupabaseSSupabase / help-and-questions
2mo ago
SSR Auth / SvelteKit / RLS issue
SupabaseSSupabase / help-and-questions
3y ago
How to get JWT in Next.js ssr
SupabaseSSupabase / help-and-questions
4y ago
RLS Connection Error with Next.js + Prisma (service_role)
SupabaseSSupabase / help-and-questions
7mo ago