AntiPattern
Auth Wrappers Misconfigured
auth-wrapper-misconfiguration
Authentication/authorization middleware and providers are wired inconsistently across Next.js routes and modules, so handlers either block with 401, fail to import expected auth helpers, or break session propagation. The result is broken sign-in/webhook flows and confusing build/runtime errors.