Add websitebuilder app
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

This commit is contained in:
Kunthawat Greethong
2026-01-26 12:50:12 +07:00
parent 93cfc18d1f
commit 4d1bb6892b
227 changed files with 35610 additions and 75 deletions

View File

@@ -0,0 +1,28 @@
{
"id": "phase1-foundation-13",
"seq": "13",
"title": "Create token refresh API",
"status": "completed",
"depends_on": ["12"],
"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/refresh endpoint created",
"Verifies refresh token from cookie",
"Generates new access token",
"Rotates refresh token",
"Updates session in database",
"Sets new HTTP-only cookies",
"Error handling for expired/invalid tokens",
"Unit tests written with Vitest",
"Tests pass with 90%+ coverage"
],
"deliverables": [
"src/app/api/auth/refresh/route.ts",
"src/services/auth.service.ts (updated)",
"src/app/api/auth/refresh/__tests__/route.test.ts"
]
}