A lot of the products launching this year were not written line by line. They were prompted into existence in Cursor, Lovable, Bolt or Claude Code. Plenty of them are genuinely good, and some already have paying users.
I don't much care whether the code is pretty. The question I'd ask before launch is what happens when a stranger uses your vibe coded app in ways you never clicked through yourself.
I've spent a good part of this year auditing production code, my own included. When I ran a full security pass on Threadovo, a SaaS I built solo and reviewed by hand, it still turned up 40 issues I ended up fixing. Generated code that nobody has read end to end deserves at least that much scrutiny. Below is the order I check things in, and why the order matters.
Why a vibe coded app breaks off the demo path
A vibe coded app usually gets tested along exactly one route: the one the person prompting it walked. Sign up, create a thing, see the thing. Everything off that route is a guess the model made, and models guess optimistically. They assume every request came from your own frontend and that the person sending it is who they claim to be. That's a fair assumption in a demo. On the open internet it's how data leaks.
Secrets and data access come first
This is the first hour of any audit, because it's where the damage is permanent. A leaked customer list can't be un-leaked.
I start by searching the built client bundle for keys. In Next.js projects the usual culprit is a service-role or admin key sitting in a NEXT_PUBLIC_ variable, which ships it to every browser. If the app runs on Supabase, I check that Row Level Security is enabled on every table. The anon key is public by design, so Supabase's RLS policies are the only thing standing between a curious user and your whole database.
Then comes the test I'd ask every founder to run tonight. Log in as user A and copy the ID of something you own from a URL or a network request. Log in as user B in another browser and ask for it. If you get it back, you have broken access control, which sits at the top of the OWASP Top Ten for good reason.
If you sell to teams, run the same test across organizations. I wrote about why per-query tenant filters fail in Multi-Tenant Data Isolation: Why Your ORM Won't Save You. On Scrivane I moved tenant scoping into the data layer itself so no single forgotten where clause could leak one training company's students to another.
Auth edges the model never tried
Login itself is rarely broken. The edges around it are.
The one that surprised me most in my own audit was OAuth account linking. Someone registers with your email address and a password before you ever show up. Later you click "Continue with Google", the app sees a matching email, and quietly merges you into the account they control. A generated auth flow will happily do this unless it was told not to.
Others worth checking: whether a password reset actually ends existing sessions and passkeys, whether email verification is enforced on the server or only hidden in the UI, and whether admin routes check the role on every request. I covered the Next.js side of this in How I Learned to Secure My Next.js Apps.
Anything that costs you money per request
AI calls, outbound emails, SMS and file uploads all cost money every time they run. Without a rate limit, one script can empty your model credits overnight.
The subtle bug here is the limiter key. Behind a proxy or CDN every request can appear to come from the same IP, so a naive limiter either blocks all your users at once or blocks nobody. I've shipped that mistake myself and had to go back and give every limiter an explicit key based on the user or workspace. If AI spend is your bigger worry, LLM Cost Optimization: Why the Model Is Rarely the Problem goes deeper.
Payments and webhooks
Generated checkout code very often grants access when the user lands on the success page. That page is just a URL, and anyone can visit it. Access should come from a verified webhook from Stripe or Paystack, with the signature checked.
Webhooks also retry. If your handler isn't idempotent, a retry can credit an account twice or send two receipts. Store the event ID and refuse to process it again.
Load and failure come after, not before
Plenty of rescue guides lead with scaling. I don't. With forty users, the thing that will hurt you is a bug you can't see.
What I want before launch is boring. Errors should reach a tool like Sentry instead of disappearing into a console. Backups should be tested by actually restoring one. Database migrations should live in version control rather than being clicked into a dashboard, because the day you need a second environment you'll want to rebuild the schema from scratch.
A few tests, on the money paths
You don't need 80% coverage. You need end-to-end tests on the flows that lose you money or trust when they break, usually signup, payment and the one core action your product exists for.
On Atsur, Playwright coverage of the critical flows was part of what brought production bugs down by about a fifth. A handful of tests that run on every deploy will catch the day an AI-assisted edit quietly breaks checkout. If your app has AI features whose output changes each run, How to Test AI Features When the Output Changes Every Time covers that part.
Harden or rebuild?
Usually harden. Most generated code I read is structurally fine and just missing the production layer around it.
I'd only push for a rebuild in two cases. The first is a wrong data model, such as an app with no concept of an organization that is about to be sold to teams. The second is home-grown auth with passwords stored in a way you'd be embarrassed to explain. Even then, I'd decide after the audit rather than before it, because rewrites are where timelines go to die.
What I'd do this week
Run the user A and user B test yourself. Grep your build output for anything that looks like a key. Check that payment access comes from a webhook. Those three checks take an afternoon and catch most of the problems that actually hurt early products.
If you'd rather have someone go through the whole thing with you, that's what my fixed-price audit and roadmap is for. You get a ranked list of what to fix first, and the fee is credited toward the build if you want me to do the fixing.