Skip to content

fix: add user creation timestamps#3314

Open
EvidentLed wants to merge 1 commit into
SecureBananaLabs:mainfrom
EvidentLed:codex/user-createdat-3311
Open

fix: add user creation timestamps#3314
EvidentLed wants to merge 1 commit into
SecureBananaLabs:mainfrom
EvidentLed:codex/user-createdat-3311

Conversation

@EvidentLed
Copy link
Copy Markdown

@EvidentLed EvidentLed commented Jun 1, 2026

/claim #743

Closes #3311

Summary

  • Add a server-owned ISO createdAt timestamp in createUser after caller payload fields are applied.
  • Store and return the same timestamp for the in-memory user record.
  • Add a focused regression test proving caller-supplied createdAt cannot override the server timestamp.

Demo

Short demo GIF: https://raw.githubusercontent.com/EvidentLed/bug-bounty/codex/demo-assets-3311/evidentled-user-createdat-demo.gif

User createdAt demo

Backup animated SVG artifact: https://gist.github.com/EvidentLed/0eca084d8b92b82ae149540e6f016e7f

Verification

  • Red check before the fix: node --test apps/api/src/tests/userService.test.js failed because the service accepted caller-supplied createdAt.
  • node --test apps/api/src/tests/userService.test.js -> 1 pass, 0 fail.
  • node --test apps/api/src/tests/*.test.js -> 2 pass, 0 fail.
  • git diff --check origin/main..HEAD -> passed.

Provenance

This PR was prepared with AI assistance under the EvidentLed GitHub identity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User creation should include createdAt timestamps

1 participant