Symptom

People get logged out, or logged in as somebody else.

Two symptoms, one area of the code. Sessions that vanish are an irritation and sessions that cross between people are an incident, and both come from the same small set of mistakes about where identity is kept and who is permitted to store a copy of it.

Logins drop, or leak between users

What it looks like

The mild version: moving between pages signs you out, a refresh returns you to the sign-in screen, some people are unaffected while others cannot stay in for a minute. The serious version: somebody sees a name, an order or a dashboard belonging to a different person, usually only under traffic or only on a second visit.

Why it actually happens

A session lives in a cookie, and a cookie is bound to a domain, a path and a set of flags that all have to agree with the callback addresses configured wherever sign-in happens. Testing on a single host conceals every one of those disagreements. The crossing variety has a sharper cause: a page rendered for one signed-in person was stored by a cache or a shared server value and then handed to whoever arrived next.

How we find out which one it is

We sign in on your real domain while reading the response headers, then repeat it with a second account in a separate browser and compare what each one is handed: which cookies are set, for which domain, for how long, and what the caching headers permit. A crossing session shows itself on the second account within minutes of looking.

What the fix touches

Cookie attributes and the configured callback and site addresses, so a session is issued for the domain people actually visit. Where identity crossed between accounts it also touches rendering: pages that depend on who is asking are marked private and read the session per request rather than once at startup. Existing sessions are then invalidated, because there is no way to know which of them were shared.

Is the crossing version something I have to disclose?
It can be, and that turns on your jurisdiction and what was exposed. You get what a disclosure needs either way: what was reachable, over what period, and what the logs can and cannot show about whether anybody actually saw it.
Why does it only happen on the live site?
On your machine there is one host, one visitor and no caching layer, which removes all three conditions at once. Real traffic supplies the second account and the cache together, which is why this arrives on launch day rather than during the build.
Can you fix it without replacing my auth library?
Nearly always. The libraries in use here are sound; what goes wrong is the configuration around them and the assumption that one rendered page suits every visitor. Swapping one out is a last resort and would be quoted on its own.
What do you need to start looking?
The repository, the address people sign in at, and two test accounts we can use freely. If the crossing has been reported but never reproduced, tell us what the person saw, because that narrows which layer is holding the wrong identity.

How it works

Audit

$199$349promo

You send a link, a repo, or both. We reproduce the problem, read the code, and record a short walkthrough: what's broken, why it broke, and what it takes to fix. You get written findings and a fixed quote.

Book my audit

Full Fix

Priced after the audit

Scoped from the audit and agreed before anything starts. We fix the cause rather than the symptom, and hand back something maintainable, with a written note on what changed and why.

Nobody can price this honestly before seeing the code. The audit is what makes a firm number possible.

The audit is a fixed price and you know it before you pay. Everything after it is quoted from what the audit actually found, and you approve the number before any work starts.

Why trust us with it

What we can show you is who does the work, what it costs, and how well we already know the failure you are staring at.

A desk at night, the walkthrough being recorded

A small agency, not a marketplace

This is run by a small web agency. The person who records your audit is the person who does the fix, so you're not being routed to an anonymous bidder.

$199$349promo

The audit stands on its own

Plenty of people take the findings and do the work themselves, or hand them to their own developer. That is a fine outcome and nothing is bundled to stop it.

Book my audit

Fixed price, agreed up front

You approve a number before work starts. If the job turns out harder than we estimated, that's ours to absorb, not a change order.

Built with one of these? You're in the right place.

Lovable
Lovable projects usually break at the Supabase edge: environment variables that never reached production, or row-level security left open on a table that holds real customer data.
Bolt
Bolt ships fast and leaves the build config behind. The deploy fails on a missing package, a Node version, or an API key that only ever existed in the preview.
Replit
Replit apps run fine in the workspace and 500 on a real domain: ports, file paths and secrets that were never wired up for the deployed process.
Cursor
Cursor edits confidently across files it has not read. Two features end up disagreeing about the same state, and the bug moves every time you fix it.
v0
v0 gives you the interface, not the wiring. Forms post to nothing, server actions are still stubs, and auth is a component rather than a session.
Windsurf
Windsurf refactors reach further than intended. Imports, types and routes drift apart until the build stops on something unrelated to what you changed.
Base44
Base44 apps hit their ceiling at data and roles: the model that fit the demo cannot carry a second kind of user without redoing what sits underneath it.
Claude Code
Claude Code writes real code, which means real dependencies, migrations and tests. When it breaks, it breaks somewhere prompting cannot reach.

What it usually turns out to be

It works locally, then 500s once deployed
Nearly always an environment variable, a build step or a file path that only exists on your machine. The code is usually fine.
The AI keeps fixing the same bug
Each pass patches the symptom because the cause sits a layer down, in the data model or in how state is shared. Prompting harder does not reach it.
Forms submit but nothing arrives
The browser gets a success back while the server quietly fails. Without error handling and logs nobody finds out until a customer complains.
Logins drop or leak between users
Session and auth code copied from an example built for a different rendering model. It looks right in testing and breaks under real traffic.

And what nobody notices until later

Security is the part an AI builder is quietest about. None of these stop the app working, which is exactly why they ship.

The database is open to anyone with the URL
Supabase and Firebase hand the browser a key on purpose — the row policies are what actually guard the data. Generated projects routinely ship with those policies off, which turns a public key into a key to everything.
Secrets that shipped to the browser
A service key pasted into a component, or one prefixed NEXT_PUBLIC_ so the build would stop complaining. It is in the page source, readable in devtools, and the bill for it is yours.
Any logged-in user can read every other user's data
The endpoint takes an id and returns that record without ever asking whose it is. Nothing looks wrong while you are the only account; change the number in the URL and you are in someone else's.
Nothing stops the same request a thousand times over
No rate limit and no real validation on the public routes, so login, password reset and checkout can each be hammered until something gives. Generated code almost never adds this on its own.

If you recognised your own problem somewhere above, that is the point. The audit is where you find out which one it actually is.

Book my audit

$199$349promo

Send it over. We'll tell you what's wrong.

One fixed-price audit at $199 instead of $349. A video walkthrough, written findings and a firm quote on what it takes to fix.

Book my audit

Book my audit

$199. Fixed price, agreed up front.

Ask a question first

No payment and no obligation, just an answer.