You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(auth): migrate 80 server components/actions to use getCurrentUserId() header
Replaces supabase.auth.getUser() (network call to Supabase Auth API) with
getCurrentUserId() (reads x-user-id header set by middleware) across all server
components and server actions. Only 16 files that need the full User object
(email, metadata) retain the original getUser() call.
This eliminates ~80 redundant auth API calls per user session, fixing the
"Request rate limit reached" error from Supabase Auth.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments