/** Print the admin cookie value for scripted access: scripts/with-env.sh pnpm tsx scripts/admin-cookie.ts */ import { createHmac } from 'node:crypto'; const token = process.env.ADMIN_TOKEN; if (!token) throw new Error('ADMIN_TOKEN not set'); console.log(createHmac('sha256', process.env.SESSION_SECRET ?? 'dev-only').update(`admin:${token}`).digest('hex'));