Skip to content

fix: require auth and preserve subject on token refresh - #11578

Open
samuelpatak-png wants to merge 1 commit into
SecureBananaLabs:mainfrom
samuelpatak-png:fix/11567-auth-refresh
Open

fix: require auth and preserve subject on token refresh#11578
samuelpatak-png wants to merge 1 commit into
SecureBananaLabs:mainfrom
samuelpatak-png:fix/11567-auth-refresh

Conversation

@samuelpatak-png

Copy link
Copy Markdown

Summary

Protects /api/auth/refresh with authMiddleware and signs refreshed tokens for the authenticated subject/role.

Test plan

  • Added focused regression tests
  • Ran npm test in apps/api three times with zero failures

Closes #11567

Made with Cursor

Closes SecureBananaLabs#11567

Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request Aug 3, 2026
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.

Bug: auth refresh endpoint issues tokens without verifying the requester

2 participants