Why Cursor Stores Supabase Admin Roles in user_metadata
This story is from 2026-10-14. It is preserved in the archive; the latest stories are on the live feed.
TL;DR AI editors keep putting a Supabase user's role in user_metadata , then gate admin RLS policies and pages on it. user_metadata is writable by the user. One supabase.auth.updateUser({ data: { role: 'admin' } }) call from the browser console makes anyone an admin. Put roles in app_metadata (serv…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-14 17:41 · DEV Community — AI
Why Cursor Stores Supabase Admin Roles in user_metadata