28 lines
918 B
JSON
28 lines
918 B
JSON
{
|
|
"id": "phase1-foundation-10",
|
|
"seq": "10",
|
|
"title": "Implement JWT token utilities",
|
|
"status": "completed",
|
|
"depends_on": ["03"],
|
|
"parallel": true,
|
|
"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": [
|
|
"generateAccessToken function created (15 min expiration)",
|
|
"generateRefreshToken function created (7 days expiration)",
|
|
"verifyAccessToken function created",
|
|
"verifyRefreshToken function created",
|
|
"JWT_SECRET added to .env.example",
|
|
"Functions are pure and testable",
|
|
"Unit tests written with Vitest",
|
|
"Tests pass with 100% coverage"
|
|
],
|
|
"deliverables": [
|
|
"src/lib/auth/jwt.ts",
|
|
"src/lib/auth/__tests__/jwt.test.ts",
|
|
".env.example (with JWT_SECRET)"
|
|
]
|
|
}
|