SupabaseS
Supabase11mo ago
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?
Was this page helpful?