Fixmedium riskhigh confidencecommunity validated

Supabase RLS policy blocked authenticated insert

Forgot WITH CHECK on the insert policy.

By Contributor · published 4/22/2026

In plain English

Ensure your app has permission to save new data by adding a simple check to verify the user identity. This fix allows logged-in users to successfully submit information to your database without being blocked.

Add WITH CHECK (auth.uid()=user_id) to the insert policy.

Discussion

0 comments

Loading comments…

Sign in to join the discussion.

Want the technical version? Switch the detail level at the top of the page toBuilder orTechnical.