All insightsCode review · 7 min read

7 Problems We Commonly Find in AI-Generated SaaS Products

We review a lot of AI-assisted codebases. The same seven issues appear often enough that we now check for them explicitly in the first day of any engagement.

1. Authorisation implied, not enforced

The UI hides a button, but the endpoint behind it accepts any authenticated request. Multi-tenant data leaks almost always start here.

2. Secrets in client-reachable code

API keys embedded in frontend bundles or in code paths that ship to the browser. Rotate them and move the call server-side.

3. No migration history

The schema was created interactively, so there is no reproducible path from empty database to current state.

4. Unbounded queries

List endpoints with no pagination or limits work perfectly until a customer has ten thousand records.

5. Webhooks without idempotency

Payment and integration webhooks get retried. Without idempotency keys you double-charge or double-provision.

6. Errors swallowed silently

Catch blocks that log nothing turn debugging into archaeology. Structured errors with context cost little and save hours.

7. No environment separation

Development pointing at production data is common and is the single easiest way to cause an irreversible incident.

Want this looked at in your product?

Book a free engineering review and we will assess your setup against exactly these points.

Book a Free Engineering Review