Skip to content

fix: add auth middleware to POST /api/payments#4292

Open
pangtongya wants to merge 1 commit into
SecureBananaLabs:mainfrom
pangtongya:fix/auth-payment-endpoint
Open

fix: add auth middleware to POST /api/payments#4292
pangtongya wants to merge 1 commit into
SecureBananaLabs:mainfrom
pangtongya:fix/auth-payment-endpoint

Conversation

@pangtongya

Copy link
Copy Markdown

Closes #2190

Added authMiddleware to the payment creation endpoint. Previously anyone could create payments without a valid Bearer token.

Fix

  • Import authMiddleware in paymentRoutes.js
  • Apply it to POST /

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

Payment endpoint lacks authentication - POST /api/payments

1 participant