Files
agentic-dev/packages/auth
Danijel Martinek 4d6734448a test(auth): cover signToken/verifyToken/validateSession crypto paths
The session methods had zero coverage because they call getPayload()
(audit finding B8). Stub the payload module (secret + findByID only) and
exercise the real crypto paths: round-trip, tampered signature, swapped
payload, expired exp, malformed segments, wrong secret, jti-less token
(fail closed), post-revocation rejection, and the per-instance denylist
limit. No running Payload needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 17:26:01 +02:00
..