@BlakeXu_@Zale258 Been there. Stripe's Event deliveries tab shows the status: 401 "Missing authorization header" on a Supabase Edge Function = JWT check (verify_jwt = false on that one function). 400 signature error = body parsed before constructEvent; it needs the raw body.
@Dzeetun11@amasad Congrats on getting your first app into the App Store! One check worth doing: anything shipped inside the app can be pulled out of it, so keep secret keys (OpenAI, Stripe secret, database admin keys) on your server, and lock database rules to each signed-in user.
@minoru0220_ Nice coverage. For the live switch: sandbox and live are separate, so the live webhook endpoint gets its own whsec_ secret, and live keys and price IDs differ too. One small real purchase plus a refund in live confirms the whole sync end to end.
@ProNaval44578 Re-fetching matches what Stripe's docs suggest: delivery order isn't guaranteed, and they say not to use created to order events since several can share a timestamp. Writing the freshly fetched state means a late, older event can't win.
@ardent__dev Congrats, a sale in 10 minutes is a great start. One check now that money is moving: grant access from the verified payment webhook (or a server-side check with the provider), not from the success page. Stripe notes buyers don't always reach that page.
@hulkkamedise Day one helps, but new tables are the catch. Supabase turns RLS on for tables made in the Dashboard; tables created in SQL or by another tool start with it off. So I'd re-check Security Advisor after every migration, not just at launch.
@FaisolDev22 Moving it to an RPC is the right call. Two gotchas: Postgres lets PUBLIC execute new functions by default, so revoke that and grant only what you mean to. And RLS doesn't apply inside a security definer function, so check the token there and set search_path = ''.
@LiveLoveSEO Great habit. One more pass: right-click a request in the Network tab, Copy as cURL, remove the Authorization header and run it. If data still comes back, it's readable by anyone with the public key, not just people clicking through your UI.
@PrajwalTomar_ Good list. One place #1 hides even with RLS on: views. Supabase's docs note views bypass RLS by default, since they usually run as the postgres user. On Postgres 15+, create them with security_invoker = true so the table's policies apply.
Paid in Stripe, still on the free plan?
Open your webhook's Event deliveries in Stripe:
401: Supabase JWT check blocked it
400: signature failed (verify the raw body)
200: handler matched no user, or RLS blocked the write
No webhook? Lovable's default matches plans by email.
@Frazkha11797853 Good check. I'd add sb_secret_ to the search: Supabase's newer secret keys use that prefix instead of a service_role JWT. And anything named NEXT_PUBLIC_ ships to the browser, so a secret with that prefix is leaked even if the code looks server-side.
@fernandogomes +1. Worth testing writes too: a policy can stop tenant B from reading A's rows but still let B update them, or insert rows with A's tenant_id if WITH CHECK is missing. Same cross-tenant test, all four verbs.
@jrcrypto_dev Nice pattern. With is_local = true the setting only lives for the transaction, so it works with transaction-mode pooling if set_config and the queries run in one transaction. The risky one is the session-level version (false), which can leak between pooled clients.
@ocen_chris Agreed. The model reviewing its own code misses what only shows from outside. Test the deployed app like a stranger: logged out, devtools open, read what the API hands back. Then repeat after every deploy, because the next prompt can undo the fix.
@MichaelABarroso That's the right kind of slow. A test that makes it stick: two test accounts, then try to read, edit and delete A's rows while logged in as B. Most people only test reads, and update/delete policies are where the surprises hide.
@molbyai Open the live site logged out, search the loaded JS for sk_live, sb_secret_ and service_role, then try reading each table with only the public key. Anything comes back = not ready. Then re-run it after every deploy. I made a free check for this: https://t.co/F97rxst47N
@yz_aisdr Useful numbers, thanks for sharing. One thing I'd rule out first: walk signup to checkout as a stranger (new email, incognito, phone). A confirm email in spam or a checkout that fails quietly looks exactly like "just curious, not buying".
@0x_lordwhite Congrats on going live! If the missing data comes from Supabase: with RLS on and no SELECT policy, the API returns an empty list, not an error. So check the table's policies first. Just don't fix it with USING (true) on anything private.
@RehanTemkar Good list. One more spot AI builders open up: Storage. A public bucket serves any file to anyone with the URL, and a broad SELECT policy on storage.objects also lets anyone list the bucket. Security Advisor flags that one as "Public Bucket Allows Listing".
App with file uploads? Check Supabase Storage, not just tables.
Public bucket = anyone with a file's URL can open it.
Public bucket + broad SELECT policy on storage.objects = anyone can list every file.
IDs and invoices belong in a private bucket with signed URLs.