- Add server-side authentication check for /[locale]/dashboard routes - Create Supabase client in middleware to verify user session - Redirect unauthenticated users to /[locale]/login with locale preservation - Chain to existing i18n middleware for all other routes - Authentication check runs before i18n middleware processing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
25 lines
486 B
Plaintext
25 lines
486 B
Plaintext
{
|
|
"active": true,
|
|
"spec": "044-implement-server-side-route-protection-for-dashboa",
|
|
"state": "building",
|
|
"subtasks": {
|
|
"completed": 1,
|
|
"total": 5,
|
|
"in_progress": 1,
|
|
"failed": 0
|
|
},
|
|
"phase": {
|
|
"current": "Middleware Authentication Setup",
|
|
"id": null,
|
|
"total": 2
|
|
},
|
|
"workers": {
|
|
"active": 0,
|
|
"max": 1
|
|
},
|
|
"session": {
|
|
"number": 3,
|
|
"started_at": "2026-01-25T11:51:46.336502"
|
|
},
|
|
"last_update": "2026-01-25T11:58:28.371330"
|
|
} |