Skip to content

fix(payment): apply authMiddleware to POST /api/payments endpoint (#11606) - #11651

Open
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/payment-routes-auth-middleware
Open

fix(payment): apply authMiddleware to POST /api/payments endpoint (#11606)#11651
jihadMo wants to merge 1 commit into
SecureBananaLabs:mainfrom
jihadMo:fix/payment-routes-auth-middleware

Conversation

@jihadMo

@jihadMo jihadMo commented Aug 8, 2026

Copy link
Copy Markdown

Resolves #11606 (refs #11398).

Applies authMiddleware to paymentRoutes router in apps/api/src/routes/paymentRoutes.js to require JWT authorization for POST /api/payments, backed by unit test suite in apps/api/src/routes/payment-auth.test.js.

github-actions Bot added a commit that referenced this pull request Aug 8, 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.

SECURITY: POST /api/payments has no auth — unauthenticated payment creation

1 participant