screentinker/server/middleware
ScreenTinker 6dd78e078a refactor(auth): drop the unused optionalAuth middleware
optionalAuth was exported but never mounted on any route (verified by grep across
server, frontend, scripts and tests: only its own definition, its export, and one
stale comment referenced it). It also carried a second, slightly different copy of
the token-resolution logic - its own user column list, and no forced-password-change
check - which is exactly the drift the preceding commit consolidates away.

Removing it rather than porting it to resolveSessionUser: a "set req.user if a token
happens to be present" middleware is a few lines on top of the shared resolver if a
route ever needs one, and an unused export is a standing invitation to mount it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-24 21:03:25 -05:00
..
apiToken.js feat(agency): per-token upload folder — auto-created, subtree-confined (#158) (#171) 2026-07-12 21:23:25 -05:00
auth.js refactor(auth): drop the unused optionalAuth middleware 2026-07-24 21:03:25 -05:00
sanitize.js Initial open source release 2026-04-08 12:14:53 -05:00
subscription.js fix(subscription): make the trial-expiry auto-downgrade actually fire (#228) 2026-07-24 15:51:46 -05:00
upload.js feat(content): subtitle/caption support as a content property (#223) 2026-07-23 12:33:35 -05:00