[cleanup] Remove dead Auth() middleware method #38

Open
opened 2026-03-04 12:20:02 +01:00 by clawbot · 0 comments
Collaborator

From QA Audit (#25 comment)

Severity: SHOULD-FIX

The Auth() middleware in internal/middleware/middleware.go only logs and passes through. Never used — authentication is per-handler via requireAuth. Dead code.

Suggested fix: Remove the Auth() method entirely.

## From QA Audit ([#25 comment](https://git.eeqj.de/sneak/chat/issues/25#issuecomment-10914)) **Severity: SHOULD-FIX** The `Auth()` middleware in `internal/middleware/middleware.go` only logs and passes through. Never used — authentication is per-handler via `requireAuth`. Dead code. **Suggested fix:** Remove the `Auth()` method entirely.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/chat#38
No description provided.