screentinker/server/middleware
ScreenTinker 1f207c4278 feat(api): per-agency-token auto-publish (#73)
api_tokens.auto_publish (DEFAULT 0 = draft, the fail-safe). Admin sets it at token creation
in the designate UI (checkbox, agency scope only). The agency endpoint reads it from the
TOKEN ROW via req.apiToken (apiTokenAuth attaches it) - NEVER from req.body, so an agency
can't opt itself out of approval. 0 -> markDraft; 1 -> the shared publishPlaylist path.

Tests (integration): draft is the default; a draft token with auto_publish:true IN THE BODY
still lands draft (body ignored); an auto-publish token goes live; manual publish still works
(extraction regression). i18n across all 5 locales. 141 suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 13:48:17 -05:00
..
apiToken.js feat(api): per-agency-token auto-publish (#73) 2026-06-14 13:48:17 -05:00
auth.js feat(server): TOTP MFA login flow + enrollment/verify endpoints (#100) 2026-06-13 20:48:55 -05:00
sanitize.js Initial open source release 2026-04-08 12:14:53 -05:00
subscription.js Initial open source release 2026-04-08 12:14:53 -05:00
upload.js docs(upload): correct misleading defParamCharset comment 2026-05-12 11:57:54 -05:00