Overview
The student layout currently imports AuthGuard but does not apply it, meaning all student routes are unprotected regardless of intent.
This issue tracks the work to:
- Identify open (public) student pages – pages that should be accessible without authentication (e.g., public course listings, landing/info pages).
- Identify protected student pages – pages that require an authenticated student session (e.g., application status, profile, enrolled courses).
- Apply
AuthGuard correctly – either wrap the entire student layout with AuthGuard if all routes are protected, or introduce nested route groups (e.g., (protected) / (open)) with AuthGuard applied only to the protected group layout.
Context
Acceptance Criteria
Requested by
@blebelo
Overview
The student layout currently imports
AuthGuardbut does not apply it, meaning all student routes are unprotected regardless of intent.This issue tracks the work to:
AuthGuardcorrectly – either wrap the entire student layout withAuthGuardif all routes are protected, or introduce nested route groups (e.g.,(protected)/(open)) withAuthGuardapplied only to the protected group layout.Context
next-ts/app/(student)/layout.tsxAuthGuardis imported but unused — route protection is not enforced.Acceptance Criteria
AuthGuard(or equivalent) is applied to all pages that require authentication.Requested by
@blebelo