28 lines
917 B
JSON
28 lines
917 B
JSON
{
|
|
"id": "phase1-foundation-15",
|
|
"seq": "15",
|
|
"title": "Create email verification 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/verify-email endpoint created",
|
|
"Verifies token from request",
|
|
"Updates user email_verified to true",
|
|
"Deletes verification token",
|
|
"Returns success response",
|
|
"Error handling for expired/invalid tokens",
|
|
"Unit tests written with Vitest",
|
|
"Tests pass with 90%+ coverage"
|
|
],
|
|
"deliverables": [
|
|
"src/app/api/auth/verify-email/route.ts",
|
|
"src/services/auth.service.ts (updated)",
|
|
"src/app/api/auth/verify-email/__tests__/route.test.ts"
|
|
]
|
|
}
|