Can one user see another user's data in your AI-built app? The two-account test for Supabase, Firebase and custom APIs
You can log in to your app, see your own data, and everything looks right. That tells you nothing about whether a second user can see yours. This is called broken access control, or IDOR (insecure direct object reference) when it happens through an ID in a request. It is one of the most common seri

You can log in to your app, see your own data, and everything looks right. That tells you nothing about whether a second user can see yours.
This is called broken access control, or IDOR (insecure direct object reference) when it happens through an ID in a request. It is one of the most common serious bugs in apps built quickly with AI tools, because the app works fine for the one person testing it.
You need two test accounts, A and B. Use throwaway emails, and do this on a staging copy if you can.
If B or a signed-out visitor gets A's data, you have the bug.
With Supabase, the browser talks to your database directly using the anon key. That is normal. What protects the data is row level security (RLS). Check these:
The test for Supabase: sign in as B and run select on A's rows with the Supabase client. You should get zero rows back, not A's data.
Open your Firestore and Storage rules. allow read, write: if true; means everyone. A safe rule ties access to request.auth.uid matching the owner field of the document.
Do not trust an ID sent by the browser. On the server, take the user from the session, then look up the record with both the ID and that user. If the record does not belong to the user, return 404.
ProofForge has a free two-account test for Supabase projects: you enter your project URL, your private tables and the owner column, and it builds a read-only script in your browser. You run it on your own computer with two throwaway test accounts. No keys or passwords go into the form, and it never reports an unclear result as a pass. It only reads, and signing in as test users can write to your authentication logs. It does not test writes, deletes or storage. https://proofforge.live/two-account-test
Use both. The outside scan is free at https://proofforge.live. Neither replaces a code review.