Skip to content

fix: restrict leaderboard member visibility and fix auth recursion - #12

Merged
mrepol742 merged 1 commit into
hallofcodes:masterfrom
mrepol742:master
Mar 17, 2026
Merged

fix: restrict leaderboard member visibility and fix auth recursion#12
mrepol742 merged 1 commit into
hallofcodes:masterfrom
mrepol742:master

Conversation

@mrepol742

Copy link
Copy Markdown
Member
  • Tighten public.leaderboard_members policy to only allow users to see their own membership (user_id = auth.uid()).
  • Update LeaderbordList: select owner_id, capture query error, and filter joined boards to role == "member".
  • Use supabase.auth.getUser() in auth proxy and return undefined at the end of the middleware.
  • Log auth middleware triggers and return early in proxy.ts

- Tighten public.leaderboard_members policy to only allow users
  to see their own membership (user_id = auth.uid()).
- Update LeaderbordList: select owner_id, capture query error,
  and filter joined boards to role == "member".
- Use supabase.auth.getUser() in auth proxy and return undefined
  at the end of the middleware.
- Log auth middleware triggers and return early in proxy.ts
@mrepol742
mrepol742 merged commit f8ad345 into hallofcodes:master Mar 17, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant