Files
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

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)"
]
}