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

Closed
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.
sneak closed this issue 2026-03-10 11:41:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/chat#38