Launch weekSIGSHIP is on Product Hunt and LiftOff. 50% off every plan with code LAUNCH50 until Sunday 6 December (Solo monthly has its own founder offer): Pro is $74.50 and Business $249.50, paid once.Launch week: 50% off · LAUNCH50See plans →Plans →
  1. Home
  2. The 30 checks
  3. The browser turns on a paid plan or admin role
💳 Payments · Fix soon (SEV-2)

The browser turns on a paid plan or admin role 

In plain English: Your browser code switches on a paid plan, adds credits or makes someone an admin by writing straight to the database. Anything the browser can do, a visitor can do too, from the browser's developer tools, without paying.

What happens if you ship it

Anyone can run the same line from dev tools and give themselves Premium, credits or admin for free, if your database allows the write. If it does not, the upgrade quietly fails for the customers who paid.

How to fix it technical

Set plans, credits and roles only on the server: in your payment webhook, or in an edge function that checks the payment or the caller first. Then stop the browser from writing those columns.

Let your AI tool fix it

Paste this into Lovable, Bolt, Cursor, Replit or Claude Code:

Prompt for your AI tool
Fix this problem in my project: The browser turns on a paid plan or admin role. Set plans, credits and roles only on the server: in your payment webhook, or in an edge function that checks the payment or the caller first. Then stop the browser from writing those columns. Change only what this fix needs, then tell me what you changed and anything I have to do myself.

Check your app

Run npx sigship in your project folder. It reports this problem as browser-grants-paid-access, along with 29 other checks. Nothing leaves your computer. New to the terminal?

Questions

How should the upgrade happen after a payment?

On the server. Your payment provider tells your server the payment went through (a webhook), and the server sets the plan. The browser only shows the result.

My database rules block that write. Is it fine?

Then the line fails for your paying customers too, and their upgrade never happens. Move it to the webhook either way.

Which fields count?

Fields such as is_premium, plan, tier, subscription_status and credits, and a role set to admin.

See every check · Jargon, explained