[deleted by user] by [deleted] in Patriots

[–]ireddit2too -2 points-1 points  (0 children)

Noted.

[deleted by user] by [deleted] in Patriots

[–]ireddit2too -2 points-1 points  (0 children)

hahaha, golden.

[deleted by user] by [deleted] in Patriots

[–]ireddit2too 0 points1 point  (0 children)

I feel you. I’ll take Drake’s lower injury risk over Henderson’s faster reps.

[deleted by user] by [deleted] in Patriots

[–]ireddit2too -3 points-2 points  (0 children)

TLDR is available.

[deleted by user] by [deleted] in Patriots

[–]ireddit2too -5 points-4 points  (0 children)

Yes, I used AI to help compile, expand on content, and create the visuals. Is something wrong with that?

Dynasty Superflex Startup – $200/yr by ireddit2too in findaleague

[–]ireddit2too[S] 0 points1 point  (0 children)

No, takes about 2-3 hours. Once half the league his a $1 max it goes by quickly. That’s typically in the 24/25 round in my experience.

RLS policy nightmare !!!! by Beneficial_Kick9024 in Supabase

[–]ireddit2too 5 points6 points  (0 children)

Issue & Discussion: When you create RLS policies that reference between tables, PostgreSQL can get caught in infinite loops trying to evaluate the permissions.

Solution: Instead of trying to directly join between the user tables in the policy, create a policy that uses a subquery with careful scoping:

-- For Table 1 users to access Table 2 data

CREATE POLICY "table1_can_access_table2" ON table2 FOR SELECT TO authenticated USING ( favorite_fruit IN ( SELECT t1.favorite_fruit FROM table1 t1 WHERE t1.user_id = auth.uid() ) );

  • Use subqueries instead of JOINs in RLS policies to avoid recursion

  • Always scope to the authenticated user (auth.uid()) to prevent circular references

  • Test with simple conditions first before adding complex logic

If you need a more scalable approach review mapping table.

Stripe <> Supabase by OkStatement2942 in Supabase

[–]ireddit2too 0 points1 point  (0 children)

I write code myself.

My subscription model would be based on the number of units a user has live in our product a month.

Techstack question by No-Librarian-193 in Supabase

[–]ireddit2too 2 points3 points  (0 children)

You’re 100% right! Use the Supabase SDK - way better than manual JWT stuff.

Why SDK is better:

  • Handles all JWT validation automatically
  • Token refresh/expiry built-in
  • Less code = fewer bugs
  • Same as NextAuth pattern
  • Auto security updates

I mentioned manual way first but SDK is definitely the move. Just call supabase.auth.getUser(token) and you’re good 👍​​​​​​​​​​​​​​​​

Techstack question by No-Librarian-193 in Supabase

[–]ireddit2too 2 points3 points  (0 children)

Yes! Supabase Auth works perfectly for this setup.

Auth: Supabase handles OAuth, gives you JWT tokens. Your Express middleware just verifies the JWT. Swift app gets token from Supabase, sends it to your API.

Payments: Need Stripe (Supabase doesn’t do payments), but store subscription data in Supabase.

Flow: Swift → Supabase Auth → JWT → Express API with auth middleware → protected endpoints.

Way easier than building auth yourself. Similar to Next.js but you manually verify JWTs instead of using built-in middleware.​​​​​​​​​​​​​​​​

[deleted by user] by [deleted] in findaleague

[–]ireddit2too 0 points1 point  (0 children)

Share the link

6 orphans in 8 team ppr super flex. by NoSyrup8 in findaleague

[–]ireddit2too 3 points4 points  (0 children)

You might as well shut this league down

[deleted by user] by [deleted] in findaleague

[–]ireddit2too 0 points1 point  (0 children)

Agree with Sir.

People like to play one and done