Where:src/lib/auth.ts -> getSession() Why: Querying the DB with a fallback UUID (eaf930...) when email is missing is an anti-pattern. Fix: Implement an early return (if (!session?.user?.email) return null;) before hitting the database.
**Where:** `src/lib/auth.ts` -> `getSession()`
**Why:** Querying the DB with a fallback UUID (`eaf930...`) when email is missing is an anti-pattern.
**Fix:** Implement an early return (`if (!session?.user?.email) return null;`) before hitting the database.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Where:
src/lib/auth.ts->getSession()Why: Querying the DB with a fallback UUID (
eaf930...) when email is missing is an anti-pattern.Fix: Implement an early return (
if (!session?.user?.email) return null;) before hitting the database.