chore: rename timestampSeconds to timestampMs in ActionsService#246
chore: rename timestampSeconds to timestampMs in ActionsService#246gjtorikian merged 1 commit intomainfrom
Conversation
The local variable was named `timestampSeconds` but holds a millisecond Unix timestamp (parsed from the `t=` value, which WorkOS sends in ms) and is compared against `DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()`. The math was correct; only the name was misleading. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR renames the local variable Confidence Score: 5/5Safe to merge — purely a clarifying rename with no behavior change. Single local variable rename confirmed correct: No files require special attention. Important Files Changed
|
Summary
ActionsService.VerifyHeader. No behavior change.timestampSeconds, but it holds the rawt=value parsed from the signature header — which WorkOS sends as a millisecond Unix timestamp — and is compared againstDateTimeOffset.UtcNow.ToUnixTimeMilliseconds(). So the math was already correct in milliseconds; only the name was wrong.t=as ms; the dotnet variable name was the only lingering rough edge.Test plan
🤖 Generated with Claude Code