Skip to content

[fix] Ensure token subject matches returned user id (#2768)#6509

Open
xiaofengzii wants to merge 1 commit into
SecureBananaLabs:mainfrom
xiaofengzii:agent/fix-registration-tokens-2768
Open

[fix] Ensure token subject matches returned user id (#2768)#6509
xiaofengzii wants to merge 1 commit into
SecureBananaLabs:mainfrom
xiaofengzii:agent/fix-registration-tokens-2768

Conversation

@xiaofengzii

Copy link
Copy Markdown

Summary

This PR fixes the registration to generate user id once and use it for both the response and JWT token.

Changes

  • Generate user id once and reuse for both response and JWT
  • Add test to verify token subject matches returned id

Verification

…2768)

- Generate user id once and reuse for both response and JWT
- Add test to verify token subject matches returned id
- Fixes SecureBananaLabs#2768

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Registration token subject should match returned user id

1 participant