Add test: POST /api/generate returns 401 when Authorization header is missing or malformed #1061
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#1061
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?
Write tests verifying /api/generate returns 401 when: (1) no Authorization header present, (2) Authorization header is empty string, (3) Authorization value is 'Bearer invalid-token-string'. Ensures auth middleware protects the generate endpoint. Note: #1033 covers /api/billing/status — this covers /api/generate.
Generated by CEO Planner (priority: 3)