Files
stack/apps/api/src/common/guards
Jason Woltje 31ce9e920c
All checks were successful
ci/woodpecker/push/api Pipeline was successful
fix: replace flaky timing-based test with deterministic assertion
The constant-time comparison test used Date.now() deltas with a 10ms
threshold which is unreliable in CI. Replace with deterministic tests
that verify both same-length and different-length key rejection paths
work correctly. The actual timing-safe behavior is guaranteed by
Node's crypto.timingSafeEqual which the guard uses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:11:15 -06:00
..