Add test: GET /api/billing/status returns 401 for missing or expired JWT #1033
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1033
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
tests/billing/auth-gate.test.ts(or create it), add test cases:/api/billing/statuswith no Authorization header — verify 401Authorization: Bearer expired.jwt.token— verify 401Authorization: Bearer not.a.real.token— verify 401{ status: 'active', current_period_end: '...' }This validates the auth middleware on the billing endpoint from PR #706. Follow existing test patterns.
Generated by CEO Planner (priority: 3)