Before launching a Lovable app: users, secrets and payments
TL;DR
A working preview is only the start: test the live app with separate users and confirm that private data stays private. Check secrets, payment access and recovery before inviting real customers.
Can one user see another user's records?
Create two test accounts with different records. Sign in as each account and try the other account's record URL or ID using your normal app interface and authorized test requests. Also test signed out. A hidden button is not access control.
Review database policies and storage access as well as the interface. Use Lovable's security findings to investigate problems, then repeat the two-account test after changes. This is a practical check, not a full security audit.
Keep privileged credentials on the server
Do not put Stripe secret keys, Supabase service-role credentials or other privileged tokens in browser code. A Supabase publishable key is intended for client use, but it still depends on correctly configured database policies.
If a secret was exposed, revoke or rotate it and fix where it is stored. Removing the visible text from the current file does not remove it from an old deployment or repository history.
Check what happens after payment
Test successful payment, cancellation, a declined payment and a repeat delivery of the payment event in your sandbox. Confirm paid access is granted by trusted server-side payment confirmation, not just by returning to a success URL.
Check which mode the deployed app uses, whether its webhook endpoint is configured for that mode and whether cancelled subscriptions lose access according to your terms. Never put real card details into a test scenario.
Be ready when the happy path fails
Test a lost connection, duplicate form submission and an expired login. Confirm errors are understandable and the app does not silently duplicate a charge or lose a user's work.
Keep a working code backup and establish how you would restore important data. Check alerts, contact details and any hosting or database pause limits before sharing the launch link.