Remove dead Auth() middleware method #68
Reference in New Issue
Block a user
Delete Branch "fix/remove-dead-auth-middleware"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Remove the unused
Auth()method frominternal/middleware/middleware.go.This method only logged "AUTH: before request" and passed through to the next handler — it performed no actual authentication. It was never referenced anywhere in the codebase; authentication is handled per-handler via
requireAuthin the handlers package.closes #38
15d85d169eto18750f107aReview: PASS ✅
Clean, minimal removal of dead code.
Verified:
Auth()method (14 lines) fully removed frominternal/middleware/middleware.goAuth()remain anywhere in the codebase (grepconfirmed)CORS,Logging,Metrics,MetricsAuth)docker build .passes (fmt-check, lint, test, build all green)Auth()middleware)Rebased onto
main(was 1 commit behind due to #64).Labeling
merge-readyand assigning to @sneak for final merge.