Commit Graph
1 Commits
Author SHA1 Message Date
damjan_savicandClaude Sonnet 4.5 2337b15e53 auto-claude: subtask-1-2 - Update middleware.ts to add authentication protect
- 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>
2026-01-25 11:59:53 +01:00