📄 SKILL.md

← Vault

name: supabase-cloud-rls-bypass-edge-function

description: Bypass Supabase Cloud RLS 401 errors by using Edge Functions with service_role key


Supabase Cloud: Bypass RLS with Edge Function

When to Use

When a Supabase Cloud table has Row Level Security (RLS) enabled and your frontend queries return 401 Unauthorized even with a valid anon key. This commonly happens when:

Project Context

Used for: DocCorretor (documentos.rochasalesseguros.com.br) allowlist system at /var/www/documentos/deploy-vps-nodejs/app/