cc-dashboard/src
Vadym Samoilenko 1ff57fff15 fix(router): redirect authenticated users away from login page
When init() restores session from cookie and user's current URL is /login,
the guard was calling next() without checking isAuthenticated — leaving the
user on the login page despite having a valid session. Now redirects to
dashboard if already authenticated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 13:32:29 +01:00
..
middleware feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
routers fix(auth): set refresh cookie path to "/" for proxy compatibility 2026-05-13 13:20:25 +01:00
services fix: OMG auto-sync, Projects OMG# column, ADO OMG Deliverable Number, session persistence 2026-05-13 12:30:40 +01:00
static fix(router): redirect authenticated users away from login page 2026-05-13 13:32:29 +01:00
tests feat: corporate planning hub backend — tasks, calendar, ADO, AI reports 2026-05-06 18:44:26 +01:00
__init__.py Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
auth.py feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00
config.py feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00
database.py Initial commit — CC Dashboard v1.0 2026-03-26 12:54:47 +00:00
main.py feat: replace Planka with in-app Kanban + add OMG page 2026-05-07 14:09:36 +01:00
models.py feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
schemas.py feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
sso.py feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00