Files
websitebuilder/.tmp/tasks/phase1-foundation/subtask_14.json
Kunthawat Greethong 4d1bb6892b
Some checks failed
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / lint (push) Has been cancelled
Add websitebuilder app
2026-01-26 12:50:12 +07:00

27 lines
839 B
JSON

{
"id": "phase1-foundation-14",
"seq": "14",
"title": "Create logout API",
"status": "completed",
"depends_on": ["13"],
"parallel": false,
"context_files": [
"/Users/kunthawatgreethong/Gitea/moreminimore-vibe/Websitebuilder/.tmp/sessions/phase1-foundation/context.md",
"/Users/kunthawatgreethong/.config/opencode/context/core/essential-patterns.md"
],
"acceptance_criteria": [
"POST /api/auth/logout endpoint created",
"Clears HTTP-only cookies",
"Invalidates session in database",
"Returns success response",
"Error handling for missing session",
"Unit tests written with Vitest",
"Tests pass with 90%+ coverage"
],
"deliverables": [
"src/app/api/auth/logout/route.ts",
"src/services/auth.service.ts (updated)",
"src/app/api/auth/logout/__tests__/route.test.ts"
]
}