Skip to content

Protect Profile and Settings routes with auth middleware #497

@yusuftomilola

Description

@yusuftomilola

Description:
Update the Next.js middleware to protect /profile and /settings routes. Unauthenticated users accessing these routes should be redirected to /login. Follow the existing middleware pattern for protected routes.

Acceptance Criteria:

  • /profile route requires authentication
  • /settings route requires authentication
  • Unauthenticated users redirected to /login
  • Existing protected routes still work

File(s): frontend/middleware.ts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions