Agent Skill: put a shared-PIN gate in front of a whole Next.js site from proxy.ts or middleware.ts — one env var arms it, a self-contained unlock page sets an HMAC-derived HttpOnly cookie, origin-resolved return path, 303 unlock redirect, constant-time compares, attempt budget answering 429 with Retry-After — in Next.js App Router
security middleware typescript nextjs cookies staging hmac access-control codex password-protection ai-agents pre-launch app-router anthropic gemini-cli agent-skills claude-code agent-skill timerise site-gate
-
Updated
Sep 5, 2026