Intent-Code Divergence
Medium
- Confidence
- 95% confidence
- Finding
- The documented "server client" example is misleading because it creates a generic Supabase client with the public anon key and does not bind auth to the incoming request cookies/session. In a Next.js server context, this can cause developers to believe they are operating on behalf of the logged-in user when they are actually using an unauthenticated client, leading to broken authorization assumptions, incorrect RLS behavior, and accidental insecure workarounds.
