Application overview, onboarding guide, and architecture diagrams
authOptions is the single most connected node in the codebase — nearly every API route depends on it via getServerSession, and middleware.ts applies it to every route except sign-in and auth/seed endpoints.
middleware.ts, and again inside each route handler via getServerSession, which is also where role/ownership checks happen.