Add websitebuilder app
This commit is contained in:
29
.tmp/tasks/phase1-foundation/subtask_12.json
Normal file
29
.tmp/tasks/phase1-foundation/subtask_12.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"id": "phase1-foundation-12",
|
||||
"seq": "12",
|
||||
"title": "Create user login API",
|
||||
"status": "completed",
|
||||
"depends_on": ["11"],
|
||||
"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/login endpoint created",
|
||||
"Verifies email and password",
|
||||
"Generates access and refresh tokens",
|
||||
"Sets HTTP-only cookies for tokens",
|
||||
"Creates session record in database",
|
||||
"Updates user last_login_at",
|
||||
"Returns user data",
|
||||
"Error handling for invalid credentials",
|
||||
"Unit tests written with Vitest",
|
||||
"Tests pass with 90%+ coverage"
|
||||
],
|
||||
"deliverables": [
|
||||
"src/app/api/auth/login/route.ts",
|
||||
"src/services/auth.service.ts (updated)",
|
||||
"src/app/api/auth/login/__tests__/route.test.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user