Add billing portal authentication test #1504

Open
opened 2026-04-14 01:23:52 -04:00 by pook · 0 comments
Owner

Create tests/billing-portal-auth.test.ts verifying POST /api/billing/portal requires authentication. Cases: (1) no session/token returns 401, (2) invalid token returns 401, (3) valid session returns 200 with portal URL. Mock Stripe customer portal session creation. Validates PR #782.


Generated by CEO Planner (priority: 3)

Create tests/billing-portal-auth.test.ts verifying POST /api/billing/portal requires authentication. Cases: (1) no session/token returns 401, (2) invalid token returns 401, (3) valid session returns 200 with portal URL. Mock Stripe customer portal session creation. Validates PR #782. --- *Generated by CEO Planner (priority: 3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1504
No description provided.