Skip to content

fix(auth): validate registration payload#5966

Open
vexnom wants to merge 1 commit into
SecureBananaLabs:mainfrom
vexnom:fix-registration-validation-5965
Open

fix(auth): validate registration payload#5966
vexnom wants to merge 1 commit into
SecureBananaLabs:mainfrom
vexnom:fix-registration-validation-5965

Conversation

@vexnom

@vexnom vexnom commented Jun 9, 2026

Copy link
Copy Markdown

Closes #5965

/claim #5965

Refs #5953 and parent bounty #743.

Summary

  • require a non-empty fullName during public registration
  • limit public registration roles to client and freelancer
  • preserve fullName in the returned user payload
  • issue a token whose subject matches the returned user id
  • add regression coverage for missing fullName, admin self-assignment rejection, and successful registration
  • update the API test script to run test files directly under Node 24

Tests

  • npm test -w apps/api

Payout: Base USDC 0x42430d6ade79041f569dc5e28153052ccef82ea6

github-actions Bot added a commit that referenced this pull request Jun 9, 2026
@vexnom vexnom force-pushed the fix-registration-validation-5965 branch 5 times, most recently from 6a2d71f to 28e0c16 Compare June 9, 2026 12:32
@vexnom vexnom force-pushed the fix-registration-validation-5965 branch from 28e0c16 to 7a5c436 Compare June 9, 2026 13:07
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 should require fullName and reject admin self-assignment (reissue)

1 participant