S
Supabase5h ago
Lani

RLS policy blocking Insert from Debug

Would anyone know why this is happening? " Error submitting review: PostgrestException(message: new row violates row-level security policy for table "reviews", code: 42501, details: , hint: null) " - My logged-in Flutter user cannot perform an INSERT on a table with a simple RLS policy FOR INSERT TO authenticated WITH CHECK (true) or WITH CHECK (auth.role() = 'authenticated'). - The action succeeds when RLS is disabled. - We have verified the anonKey, the table schema, foreign keys, and data types are all correct. - We have recreated the policies and the table itself using the SQL editor. Does Flutter not fully "Authenticate" users unless the app is deployed properly? I'm running it in VSCode debug instance
1 Reply
Lani
LaniOP4h ago
Is Supabase just bad or what's going on The auth is Verified from both Supabase and Flutter but it still fails the RLS check

Did you find this page helpful?