SupabaseS
Supabase6mo ago
bensua

Best way to manage user plan/tier (access token/app metadata/ DB queries)

Hi all,
I've been playing around with Supabase auth and I want to learn more about the pros/cons of different wats to manage user plan (FREE/PREMIUM). I researched around for the last few days but feel like it is still unanswered.

Requirements are:
  • Secure storage: user can't edit it
  • Enforce rules on operations: ensure user don't overstep their tier. For example, free users can only see 2 lists
  • Efficient retrieval: without calling too many checks or refreshing tokens
  • Good dev experience?: easy to implement and manage (i feel like this is optional since each things have their own struggles)
Was this page helpful?