Supabase apps built with AI tools may let users grant themselves paid plans
Many apps built with tools like Lovable, Bolt or Cursor handle upgrades with a single client-side database update that sets a flag such as is_pro. The article explains that a common row-level security policy, which lets users update their own profile row, does not restrict which columns they can change, so billing fields can be altered from the browser console. It describes a quick console test to check whether a free account can upgrade itself, and recommends column-level grants or a database trigger to block changes to billing fields. The author also advises storing subscriptions separately and setting plans only through a verified payment webhook, and notes that the guidance applies only to apps the developer owns.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in