mirror of
https://github.com/tanweai/pua.git
synced 2026-09-19 02:19:52 +08:00
ca6c2394ab
Fixes #95 — session cookie was unsigned base64, allowing forgery. - New _session.ts: shared HMAC-SHA256 sign/verify using Web Crypto API - Cookie format: base64(payload).base64(hmac(payload, SESSION_SECRET)) - GitHub token no longer stored in cookie - All endpoints use signed session verification - Requires SESSION_SECRET env var in Cloudflare Pages settings
1.6 KiB
1.6 KiB