Back

Account Deleted

Hey I am on Medialย โ€ขย 4m

You shipped your Supabase app. Everything runs smooth... until it doesnโ€™t. Not because Supabase is broken โ€” But because itโ€™s too easy to use. And that ease hides traps. Here are 6 mistakes that quietly wreck Supabase apps (and how to avoid them): ๐Ÿ”’ 1. Trusting auth.user() in the frontend Itโ€™s not safe. Itโ€™s client-side and spoofable. Use server-side checks with RLS and JWT claims. Always. ๐Ÿ”“ 2. Public tables with no RLS Querying is easy, but security is optional. Default to RLS ON, then explicitly open what needs access. ๐Ÿ˜ต 3. No fallback in auth.uid() Policies depending only on auth.uid() fail silently during admin queries. Always account for IS NULL. โš ๏ธ 4. Splitting auth state between client and app Session state in two places = race conditions. Let Supabase handle it. React to onAuthStateChange() once โ€” in one place. ๐Ÿงฉ 5. Calling edge functions without auth context Edge functions donโ€™t carry auth by default. Pass the Authorization header manually โ€” no header = no user. ๐Ÿ‘ป 6. Testing only as a logged-in user Your app works for you. What about anonymous users? Test unauthenticated access too โ€” Supabase doesnโ€™t block anon by default. Supabase is powerful, but that power cuts both ways. Donโ€™t treat it like Firebase. Treat it like backend infra: Secure by default Test like a hacker Trust nothing by default Build fast โ€” but build like itโ€™ll scale. Because one silent failure can kill momentum.

8 Replies
8
15
Replies (8)

More like this

Recommendations from Medial

Image Description
Image Description

Avinash Bhardwaj

Building launch.toda...ย โ€ขย 3m

Launchโ€™s Launch Alert ๐Ÿš€ Excited to share that Launch is now live. Weโ€™ve spent the last few months building something that feels obvious in hindsight: A way to build real, production-ready apps- just by describing what you want. โœ… Real human support

See More
2 Replies
4

Abhishek Dwivedi

ย โ€ขย 

Karyarthย โ€ขย 4m

Customers whisper before they scream. Startups donโ€™t fail from lack of signals. They fail because founders ignore them. Churn creeping up. Engagement slipping. Feedback feelsโ€ฆ polite. By the time itโ€™s obvious, itโ€™s too late. The pivot shouldโ€™ve h

See More
Reply
1

Vansh Khandelwal

Full Stack Web Devel...ย โ€ขย 1m

Edge computing moves compute and storage closer to usersโ€”CDN PoPs, gateways or devicesโ€”reducing latency, bandwidth and improving resiliency. Gartner predicts ~75% of enterprise data will be created/processed outside traditional datacenters by 2025. T

See More
Reply
2

Poosarla Sai Karthik

Tech guy with a busi...ย โ€ขย 6m

Sales is treated like a shitty job globallyโ€”because itโ€™s rarely treated as a real role. Most startups donโ€™t even have a dedicated sales person. They assume anyone can pick up a phone and sell. Even when they hire, itโ€™s like: โ€œHereโ€™s a guy from the r

See More
Reply
2
Image Description

Om Pandey

An engineerย โ€ขย 21d

Zohoโ€™s Ulaa Browser โ€“ A Step Forward, But With a Catch Zoho has done something commendable by launching the Ulaa Browser, positioned as an Indian alternative to mainstream browsers like Chrome and Edge. With a strong focus on privacy, tracker blocki

See More
4 Replies
9
Image Description
Image Description

SamCtrlPlusAltMan

ย โ€ขย 

OpenAIย โ€ขย 3m

Have an idea? Blink turns it into a beautiful, fully functional app in seconds..literally. No more boilerplate, debugging marathons, or stitching tools together. Just type what you want, and Blink builds it. ๐Ÿ”ง What you get out of the box: โ€“ Built-

See More
4 Replies
9
21
Image Description
Image Description

Yash Pratap

csoc.inย โ€ขย 1y

[This post has been deleted by the creator]

7 Replies
5

Mehul Fanawala

ย โ€ขย 

The Clueless Companyย โ€ขย 2m

Youโ€™ll judge me for thisโ€ฆ but I always notice. Whenever I visit an office, a hotel, or even someoneโ€™s home, my eyes automatically scan for one thing. A glowing light in an empty room. A fan spinning with no one underneath. An AC humming while the w

See More
Reply
1
Image Description
Image Description

Vishu Bheda

ย โ€ขย 

Medialย โ€ขย 6m

๐—ง๐—ต๐—ฒ ๐— ๐—ผ๐˜€๐˜ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ๐—ณ๐˜‚๐—น ๐—š๐—ฟ๐—ผ๐˜„๐˜๐—ต ๐—›๐—ฎ๐—ฐ๐—ธ ๐—•๐—ถ๐—ด ๐—ง๐—ฒ๐—ฐ๐—ต ๐—จ๐˜€๐—ฒ๐˜€ (๐—ง๐—ต๐—ฎ๐˜ ๐—ก๐—ผ๐—ฏ๐—ผ๐—ฑ๐˜† ๐—ง๐—ฎ๐—น๐—ธ๐˜€ ๐—”๐—ฏ๐—ผ๐˜‚๐˜) Most people think Big Tech wins because their product is the best. ๐๐จ๐ญ ๐ญ๐ซ๐ฎ๐ž. They win because they control ๐๐ž๐Ÿ

See More
5 Replies
7
22

Download the medial app to read full posts, comements and news.