Skip to content

Align registration token subject#4267

Open
bozicovichsantiago20-oss wants to merge 1 commit into
SecureBananaLabs:mainfrom
bozicovichsantiago20-oss:codex/align-register-token-sub
Open

Align registration token subject#4267
bozicovichsantiago20-oss wants to merge 1 commit into
SecureBananaLabs:mainfrom
bozicovichsantiago20-oss:codex/align-register-token-sub

Conversation

@bozicovichsantiago20-oss

Copy link
Copy Markdown

Summary

  • Generate a single registration user id and reuse it for the returned id and JWT sub.
  • Add a focused regression test with a controlled clock so the mismatch cannot reappear.

Validation

  • node --test apps/api/src/tests/auth-service.test.js
  • node --test apps/api/src/tests/*.test.js
  • git diff --check

Closes #4266
Refs #743
/claim #743

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.

Registration token subject should match returned user id

1 participant