[codex] Remove unused Supabase request auth helper

🟢 open · #186 · Open-Legal-Products/mike ← user-in-search-of-a-name/mike-willchen96 · opened 1mo ago by user-in-search-of-a-name · -30 across 1 file · ↗ on GitHub

From the PR description

Summary

Removes the unused getUserIdFromRequest helper from backend/src/lib/supabase.ts.

Why

The helper is not referenced anywhere in the repository. Authenticated backend routes use the existing Express middleware flow instead, so keeping this helper adds dead code and an extra request-style auth path that is no longer used.

Changes

  • Deleted the unused request JWT helper from backend/src/lib/supabase.ts
  • Left createServerSupabase unchanged

Testing

  • rg "getUserIdFromRequest" . returns no matches
  • git diff --check passes

Note: I could not run npm run build --prefix backend in this local shell because the checkout does not have dependencies installed.

Our analysis

Remove unused Supabase request-auth helper — read the full analysis →

Think the analysis missed something the PR description covers?

Capture this PR into my fork

Download a Markdown prompt that tells Claude how to port every commit in this PR into your working tree. Run it via claude -p < capture-pull-186.md from inside the repo you want the changes in.

⬇ Download capture-pull-186.md