Overview
app/(auth)/login/page.tsx, app/(auth)/register/page.tsx, store/auth.store.ts, lib/auth-api.ts, components/auth-initializer.tsx, and middleware.ts form the app's entire access boundary and have no tests.
Tasks
Acceptance Criteria
Dependencies
Blocked by [FE-64] and [FE-66].
Notes for Contributors
Comment below to be assigned.
Overview
app/(auth)/login/page.tsx,app/(auth)/register/page.tsx,store/auth.store.ts,lib/auth-api.ts,components/auth-initializer.tsx, andmiddleware.tsform the app's entire access boundary and have no tests.Tasks
auth-initializerrestores a session on mount and handles a missing or invalid token.middleware.ts— unauthenticated access to a dashboard route redirects to login.Acceptance Criteria
Dependencies
Blocked by [FE-64] and [FE-66].
Notes for Contributors
Comment below to be assigned.