© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•12mo ago•
13 replies
Hyper

NextJS ServerSide createServerClient RLS not being utilized

I have a server side service call for a table in my database, that has RLS enabled and a policy for only able to seeing own data. However all data is being returned.

I'm following the patterns described here: https://supabase.com/docs/guides/auth/server-side/nextjs?queryGroups=router&router=app

I'm running into this issue while using supabase local.

I'm seeing past implementations where you pass in the authenticated users token into the createServerClient, but I'm not seeing that in the current docs, the suggestion is that should be working via cookie, however I'm seeing a different outcome.

Any insight on what else I could debug here?
Setting up Server-Side Auth for Next.js | Supabase Docs
Setting up Server-Side Auth for Next.js | Supabase Docs
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

RLS Serverside
SupabaseSSupabase / help-and-questions
4y ago
createServerClient
SupabaseSSupabase / help-and-questions
14mo ago
RLS without being authenticated
SupabaseSSupabase / help-and-questions
4y ago
Supabase + NextJS authorisation without RLS
SupabaseSSupabase / help-and-questions
4y ago