Skip to content

[Frontend] Add route protection / auth guard #250

Description

@nourshoreibah

No middleware or guard exists; protected pages render for logged-out users and there is no redirect to /login. Add an auth guard (layout-level or middleware) that checks isAuthenticated from AuthContext and redirects unauthenticated users away from protected routes.

  • When you enter the app, you get placed in dashboard even if not authed
  • When someone who isn't admin logs in they should go to project page
  • Mutable actions answer can't do on the backend should not be visible on the frontend
    • Use backend as source of truth

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions